• You've been granted Beta access to this site, allowing you to explore some of the new features while they're still under construction. More information can be found in the Beta forum.

OPII/PCA Light Timers Acting Bizzare

dna5

New Member
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. 
 
 
 

JonW

Senior Member
Set a timer that's not tied to the light and then turn the light off after that timer expires.
 
I'm going to take a guess that you're using UPB lighting.  I think what's happening is that since you are turning multiple rooms off, the polling is taking a while to read the status back in.  Likely, the Hall & Stair room has not been polled yet when you turn the 1st Hall light back on.  Then, when that room does get polled, the status is reflected as just being "ON" and the timer is cleared since the light status reports that it is "ON".
 

StarTrekDoors

Active Member
Create a new switch group but do not include Hall 1 so you'll have "Hall & Stairs - Not Hall 1" group to use instead.
Since you want Stair 1 on anyway, there is no need to turn it off then on which by the way also reduced electrical wear on the device, switch, this results in fewer programming lines, and you don't have to tie up the system to invoke a delay.
 

dna5

New Member
Appreciate the suggestions. I am using UPB. I bet you are right that the polling is incomplete when the timer starts. Ill try the work arounds. Thanks again.
 
Top