Programming Help - Keep a light on between 7-8am

dshurett

New Member
I have a certain light in the house that I want to remain on for one hour during the day. I tried setting this in automation to turn the light on every 3 minutes. However, when I checked it this morning, it was off. Is there a better way to do this and can you see any reason this isn't working?

Code:
25.	EVERY 3 MINUTES
		AND IF HOUR IS GREATER THAN 7 
		AND IF HOUR IS LESS THAN 8 
		AND IF DAY OF WEEK IS IN MTWTF-- 
			THEN Jonathan's Room Light ON

26.	TIMED 8:01 AM MTWTF--
			THEN Jonathan's Room Light OFF
 
How is it getting turned off?

You can add a group of code to look for the light going off during that time and turn it back on.
Look for the UPB link that is turning it off.

Add this to you code.

Code:
1. WHEN Jonathan's Light OFF
     AND IF HOUR IS GREATER THAN 7
     AND IF HOUR IS LESS THAN 8
     AND IF DOY OF WEEK IS IN MTWTF--
          THEN Jonathan's Light ON

Also, unless you've used all the time clocks, you can set a timeclock to be on only between 7 and 8 on MTWTF and turn that three lines of code into one.

Code:
AND IF TIMECLOCK ONE ENABLED
 
I think the simplest solution would be:

Code:
1.	TIMED 7:00 AM MTWTF--
			THEN Jonathan's Light ON FOR 1 HOUR

If you want to force it back on if someone turns it off then perhaps something like this:

Code:
1.	TIMED 7:00 AM MTWTF--
			THEN Jonathan's Light ON
2.	TIMED 8:00 AM MTWTF--
			THEN Jonathan's Light OFF
3.	WHEN Jonathan's Light OFF
		AND IF TIME IS GREATER THAN 7:00 AM 
		AND IF TIME IS LESS THAN 8:00 AM 
		AND IF DAY OF WEEK IS IN MTWTF-- 
			THEN Jonathan's Light ON
 
fjh beat me to it. I don't know of any UPB switch where the controller can lock out the local control on the switch. If you really really needed for the switch to not be able to turn off the light when you don't want it to, that would involve some wiring.
 
fjh beat me to it. I don't know of any UPB switch where the controller can lock out the local control on the switch. If you really really needed for the switch to not be able to turn off the light when you don't want it to, that would involve some wiring.
I can think of a roundabout way to do this... set the switch so the rocker doesn't control the load - it has to send a link command. *don't* set the switch to respond to that link. Instead, go into your HAI panel and say

Whenever Link 150 (the dummy link) is activated, turn on Jonathan's Light
Whenever Link 150 (the dummy link) is deactivated and the time is not between 7:00AM and 8:00AM, turn off Jonathan's Light

Depending on the switch, you may be able to leave the On so it directly controls the switch and the Off so it doesn't... depends on the brand switch which options they have in upstart.

I'm not sure how much delay that would introduce; if your panel isn't on then the light switch isn't working, but that should be rare. It couldn't hurt to test.
 
I can think of a roundabout way to do this... set the switch so the rocker doesn't control the load - it has to send a link command. *don't* set the switch to respond to that link. Instead, go into your HAI panel and say

Whenever Link 150 (the dummy link) is activated, turn on Jonathan's Light
Whenever Link 150 (the dummy link) is deactivated and the time is not between 7:00AM and 8:00AM, turn off Jonathan's Light

Depending on the switch, you may be able to leave the On so it directly controls the switch and the Off so it doesn't... depends on the brand switch which options they have in upstart.

I'm not sure how much delay that would introduce; if your panel isn't on then the light switch isn't working, but that should be rare. It couldn't hurt to test.

That's really clever!

As you said, I think you could program the light to come on via the link - at the switch (with SA switches anyway). Which would speed up turn on.
But use your method to turn it off.
 
I do know that the pulseworx switches have a tad bit more flexibility than SAI in how you set the rocker in upstart; also has better timers for shutoff... not sure about HAI - but either way it's all do able.
 
Back
Top