CoolToys Posted August 20 Posted August 20 I just got around to updating to 5.9.1 as I try and find a way for the eisy to control my new "permanent" LED holiday lights by HYSRT. Yesterday the house didn't shift modes, I use three state variables, sNight, sEarly_Morning and sSunrise_Daytime. Most of the motion based automatic light scenes should not come on is sNight = 0 or sSunrise_Daytime = 1. The code is unchanged for several years, here is the sunrise one. Sunrise Set Day - [ID 002D][Parent 0048] If Time is Sunrise Then $sSunrise_Daytime = 1 $sEarly_Morning = 0 Else - No Actions - (To add one, press 'Action') The state variables are changing but the programs are ignoring the lines in the program so this works even is sSunrise_Daytime = 1 Auto Kitchen - [ID 0014][Parent 0001] If 'Din SliderActivity' Status is On And $sSunrise_Daytime is not 1 And 'Kitchen Main Master' Status is Off Then $sKitchen_Motion = 1 Set 'Night Kitchen Snack' On Else - No Actions - (To add one, press 'Action') And last night the house didn't light itself up at sunset. I verified that this worked (The last two lines are leftover from troubleshooting "long running randomness" a year or so ago. It has been working so I haven't cleaned up all of the test code. Sunset to Night - [ID 000C][Parent 0048] If Time is Sunset Then $sNight = 1 $sBedtime = 0 $sSunrise_Daytime = 0 $iAtomic_Test_Tracker = 0 Set 'Courtyard Niche Top' On Else - No Actions - (To add one, press 'Action') The fountain came on and the sNight was "1" and sHouse_Active was "1" but this never ran. Night Daily Home - [ID 0003][Parent 0001] If $sHouse_Active is 1 And $sNight is 1 And $sBedtime is 0 Then Set 'Entry Art Niche' On Wait 1 minute Set 'Dine - DR Button' On Wait 4 seconds Set 'MB Cabinet Status' On Wait 1 minute ... (shortened for space) Else - No Actions - (To add one, press 'Action') Any thoughts? Thank you Quote
Guy Lavoie Posted August 20 Posted August 20 2 hours ago, CoolToys said: Auto Kitchen - [ID 0014][Parent 0001] If 'Din SliderActivity' Status is On And $sSunrise_Daytime is not 1 And 'Kitchen Main Master' Status is Off Then $sKitchen_Motion = 1 Set 'Night Kitchen Snack' On Else - No Actions - (To add one, press 'Action') Have you tested it manually? For example, looking at your state variables in Admin Console and verifying that $sSunrise_Daytime is indeed set to 1, and then right clicking on that program and trying "Run (If)". Quote
Solution Geddy Posted August 20 Solution Posted August 20 @CoolToys have you performed a full power cycle on the eisy? Rather than just the reboot following the update it might need a full power cycle just to "catch up" or at least trigger things correctly. I would shut it down (6 button presses or press and hold), actually pull the power cord, wait 10 seconds (random amount of time), plug it back in, and power it up (i forget if it turns on automatically or not). Your programs are executing exactly at "x" time. Do you have many other things triggered at the same time? Even though it has "worked for years" (famous phrase among many of us), it's possible that there could be a lot of communicating at the same time and something is missed. Shifting something just a few seconds might help. Quote
CoolToys Posted 10 hours ago Author Posted 10 hours ago @Geddy, sorry for the long delay but yes, that did it. Since the last update I also simplified the house down to five different states. Because of the dual zone AC, I had 10 different states for energy savings. The longer we were gone the less the HVAC was on, and less lights that couldn't be seen from outside the house came on. That's my favorite trick btw is keeping the neighbors guessing when I am home. Since reducing the number of state variables in programs, that seemed to help with some other issues. If the IF statement had too many requirements, the program didn't always run. I verified the variables where correct, and after shrinking half of them and removing the checks from the IF, those scenes have worked correctly for the last two weeks. My wife set of the alarm and didn't tell me when she was late for work yesterday. I woke up to find some odd lights on. I thought I was back to some randomness issues. She manually turned off a few so the lights that were on made zero sense. One look at the log, and I realized the eisy was working correctly. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.