Jump to content

Controlling Long Program Order of Execution


CoolToys

Recommended Posts

Anyone have any luck with Polisy or eisy 5.7.0 or newer controlling the order and timing for a long program?

I have a "Bedtime" program (yes the same one I want a mini remote to run and can't figure that out either), that basically shuts down the house and changes the thermostats to a cooler temperature.  I learned this trick when I ran an integration business and Lutron had a "learning mode".  The idea is if your house is being watched, it looks like someone is really there not just "poof" and the lights go off.

Right now it is automatic at 10ish with no one home (sOccupied=0) and manual when I press "Off" on a Insteon Keypad 8.  With the ISY and the USB modem, it ran pretty much in order.  So it looks like someone walking through the house shutting it down.  I now have the Eisy and the serial modem and it goes in random order each time.  To slow it down and let the program run, every third command I inserted wait commands and it still doesn't help.  It almost appears to run in reverse order.  The master bed and closet usually turn off first. 

The automatic version is the same in the Then statement.  I realize it can now be a parenthetic or, but that is how long I have had an ISY running my house.

BedTime - [ID 0016][Parent 0001]

If
        $sEdit_Guest is 0
    And (
             'MasterBed Keypad.On' is switched Off
          Or '54.B6.E6 - A Down' is switched On //this line doesn't work
        )
 
Then
        $iInterior_Motion  = 0
        $sSnack_Walk  = 0
        $sAlarm  = 0
        $sKitchen_Motion  = 0
        $sBedtime  = 1
        Set 'House Front' Off
        Wait  4 seconds
        Set 'Temp Home Night' On
        Wait  4 seconds
        Set 'Garage Lights' Off
        Set 'Garage Front Porch Lite' Off
        Wait  4 seconds
        Set 'Holiday Lights' Off
        Set 'Back Patio' Off
        Wait  4 seconds
        Set 'FamRm Dining' Off
        Set 'Dining' Off
        Wait  4 seconds
        Set 'Scott Office Lamp Outlet' Off
        Set 'LR Pool Table' Off
        Wait  4 seconds
        Set 'HallwayOutletCurio' Off
        Set 'LR Center Outlet Top' Fast Off
        Set 'LR Center Outlet Bot' Fast Off
        Wait  4 seconds
        Set 'LR Lamp Scene' Off
        Set 'Entry Art Niche' Off
        Set 'Stairwell 3 Way' Off
        Wait  3 seconds
        Set 'Upstairs Hallway 3 Way' Off
        Set 'Kelly Office Lamp Scene' Off
        Wait  8 seconds
        Set 'Studio Fan' Off
        Set 'Studio Button Light' Off
        Set 'Studio A' Off
        Set 'Studio B' Off
        Set 'Studio C' Off
        Wait  4 seconds
        Set 'Studio Closet' Off
        Set 'MB Closet Hers' Fast Off
        Set 'MB Closet' Fast Off
        Wait  4 seconds
        Set 'Master Bed Cabinets' Off
     
 
Else
   - No Actions - (To add one, press 'Action')
 

Link to comment

At first look you could do most if not all of this with one command using one scene with all devices in that scene:

-Set the variables

- add all devices to one scene, including the devices that are in other scenes

- set specific behaviors for the devices in that scene

- remove all of the 'set <device> off' commands with one for that new scene

No more 'popcorn' lights, they all go of together

Edited by paulbates
Link to comment

@paulbates, the point is exactly that they don't all go off together.  It should look like I am following my normal routine walking through the house shutting it down.  For years with the ISY it worked 99% of the time just fine.  Since going to the eisy, it goes in seeming random order.  

The whole idea is to make the house look lived in, not like it is on an automatic timer or the power just failed.

 

Link to comment
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      36.5k
    • Total Posts
      367.6k
×
×
  • Create New...