Jump to content

Programming question


mitch236

Recommended Posts

I have a Scene that turns on a few devices based on the following program

 

If:

Module Climate Light <5

and From 4:00:00PM

To 8:00:00PM (same day)

 

Then:

Set Scene 'Outdoor Lights' On

 

Else:

Set Scene 'Outdoor Lights' Off

 

 

The problem I have is if I manually turn on one of the lights included in the scene and according to the above statement, the Else is running, it keeps turning off my lights.

 

Any better way of doing what I'm trying to do?

Link to comment

I believe that the weather module updates every minute or so, so it will fire this program each time it updates. You may want to use another program as a binary variable to indicate that you've already handled the "event" for the night. When the light falls below 5 for the first time (your variable program is false), you can turn on the lights and set this program to true. I would then create another program that turns off the lights at 8 PM provided that they were turned on by your first program (which you will know because you set your variable).

 

Make sense?

Link to comment

Archived

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


×
×
  • Create New...