aLf Posted November 24, 2016 Share Posted November 24, 2016 I have many lights that I control at sunset to 10PM. I like to have the backup of making sure they off at other times. That said I have each on their own program, i.e., IF: item is off, THEN: turn item on. Vice, during the off times IF: item is on, THEN: turn item off... I'd like to simplify my housekeeping and include all the items in one program. How can you then write that each item is challenged? I thought about a folderthat says from sunset to 10PM these items run, but then I don't have the protection in the off hours??? Link to comment
Techman Posted November 24, 2016 Share Posted November 24, 2016 (edited) I have many lights that I control at sunset to 10PM. I like to have the backup of making sure they off at other times. That said I have each on their own program, i.e., IF: item is off, THEN: turn item on. Vice, during the off times IF: item is on, THEN: turn item off... I'd like to simplify my housekeeping and include all the items in one program. How can you then write that each item is challenged? I thought about a folderthat says from sunset to 10PM these items run, but then I don't have the protection in the off hours??? Put all the lights into a scene and then run a program at sunset to turn on the scene You can run a 2nd program that runs from 10:01pm until ?? that says if lights x,x,x are not off then turn them off. Edited November 24, 2016 by Techman Link to comment
stusviews Posted November 24, 2016 Share Posted November 24, 2016 Use an OR statement. If any one or more lights are on, then send an off the all the lights. Link to comment
Recommended Posts