Jump to content

[PROGRAMMING] Always On From - To


dpark

Recommended Posts

Hi dpark-

 

Try this:

 

If 
    From 6:00 pm
    To 8:00 pm
 And 
     Status MyLight is not On

Then
  Set MyLight On

 

Edit as necessary. The reason for "is not On" is just in case this is a dimmer. Anything less than full on will make this program set the light full on. If this is a relay type switch, you could say "is Off" instead.

 

 

-Xathros

Link to comment

Yes, that is basically what I did but I would also like to turn the light off automatically after 8:00pm.

 

If I add Else statement there to turn the light off, it just loops - on and off when I hit off switch. :)

 

So I created another program for "off hours" and added Then to turn it off. I was hoping to do this in one program.

 

Thanks!

Link to comment

dpark-

 

We COULD do it in one program:

If
    From 6:00 pm
    To 8:00 pm
 And
     (
     Status MyLight is not On
      or
     Status MyLight is On
     )
Then
  Set MyLight On

Else
  Set MyLight Off

* * * BUT * * *

This program will run True (Then) at 6pm and anytime between 6pm and 7:59:59 when the switch status changes forcing the light ON and False (Else) at 8pm and anytime the switch status changes between 8pm and 5:59:59pm the next day forcing the light off.

 

I actually do something like this for my back yard flood lights. It they are turned on during daylight hours I force them right back off. During dark hours I have a 15 minute timer (Optional - disable with a Fast On - re-enable with an Off) to turn them back off.

 

-Xathros

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...