Hello,
I have an OmniProII 4.0 and User PCA.
I am trying adjust some code for a button that I run when going to bed. The button sets a timer to give us enough time to go upstairs and when that timer expires it shuts off all the lights in the house and arms the alarm.
3. WHEN Night Timer OFF
THEN Kitcn&Dning OFF
THEN Hall & Stair OFF
THEN Outside OFF
THEN PROGRAM ARM NIGHT DELAY
This has worked fine until I tried to adjust it a bit. The new goal was to have a single light in the hall stay on for a couple hours and then turn off.
3. WHEN Night Timer OFF
THEN Kitcn&Dning OFF
THEN Hall & Stair OFF
THEN Outside OFF
THEN PROGRAM ARM NIGHT DELAY
THEN 1st Hall ON FOR 60 MINUTES
Here is the problem. With this new program, the "1st Hall" light initially comes on with a timer (you can see the countdown in real time on the Haiku app or in PCA), after about 10 seconds it switches from timer to "ON" and stays on indefinitely.
The catch seems to be that the "1st Hall" switch in included in the "Hall & Stair" lighting group.
If I rewrite the code so that each individual switch within the "Hall & Stair" group is turned off ("THEN 1st Hall OFF", "THEN 2nd Hall OFF" and "THEN 3rd Hall OFF") individually rather than the whole group, then "1st Hall ON FOR 60 MINUTES" works fine with a normal functioning timer.
Obviously in troubleshooting this I stumbled upon the solution (turning off the individual switches rather than the group), but it is annoying that the code isnt as simple as it could be. I dont understand why turning off the lighting group before turning on an individual switch on a timer would screw up the timer.
Does anyone have any insight into this problem? Anyone else experience this?
Thanks for your input. Hopefully, this will help someone else and save the from having to troubleshoot entirely.
I have an OmniProII 4.0 and User PCA.
I am trying adjust some code for a button that I run when going to bed. The button sets a timer to give us enough time to go upstairs and when that timer expires it shuts off all the lights in the house and arms the alarm.
3. WHEN Night Timer OFF
THEN Kitcn&Dning OFF
THEN Hall & Stair OFF
THEN Outside OFF
THEN PROGRAM ARM NIGHT DELAY
This has worked fine until I tried to adjust it a bit. The new goal was to have a single light in the hall stay on for a couple hours and then turn off.
3. WHEN Night Timer OFF
THEN Kitcn&Dning OFF
THEN Hall & Stair OFF
THEN Outside OFF
THEN PROGRAM ARM NIGHT DELAY
THEN 1st Hall ON FOR 60 MINUTES
Here is the problem. With this new program, the "1st Hall" light initially comes on with a timer (you can see the countdown in real time on the Haiku app or in PCA), after about 10 seconds it switches from timer to "ON" and stays on indefinitely.
The catch seems to be that the "1st Hall" switch in included in the "Hall & Stair" lighting group.
If I rewrite the code so that each individual switch within the "Hall & Stair" group is turned off ("THEN 1st Hall OFF", "THEN 2nd Hall OFF" and "THEN 3rd Hall OFF") individually rather than the whole group, then "1st Hall ON FOR 60 MINUTES" works fine with a normal functioning timer.
Obviously in troubleshooting this I stumbled upon the solution (turning off the individual switches rather than the group), but it is annoying that the code isnt as simple as it could be. I dont understand why turning off the lighting group before turning on an individual switch on a timer would screw up the timer.
Does anyone have any insight into this problem? Anyone else experience this?
Thanks for your input. Hopefully, this will help someone else and save the from having to troubleshoot entirely.