stillen_i30 Posted June 21, 2014 Posted June 21, 2014 I have a program that prevents any of the outdoor lights from being turned on and if they were turned on, they would be shut off immediately. This program is only active until after sunset. Sometimes with cloud cover here in PHX, it gets darker earlier outside and I want to temporarily disable this program just for that one day to allow any of the outside lights to be manually turned on, but the following night, revert back to normal operation. How do I achieve something like this? Variables? If so, can an example be provided? Thanks
stillen_i30 Posted June 22, 2014 Author Posted June 22, 2014 No I don't. However, my program works fine...I just occasionally want to deactivate it just for the one night so I can manually turn on the lights back there sooner. This is a rare occurrence that I want to control it in this manner.
PurdueGuy Posted June 22, 2014 Posted June 22, 2014 I assume you have a program such as: If From Sunrise To Sunset (same day) And ( Status 'Devices / Outside / Front' is not Off Or Status 'Devices / Outside / Porch' is not Off Or Status 'Devices / Outside / Outside1' is not Off ) Then Set Scene 'Scenes / Outside / All Outside' Off Else - No Actions - (To add one, press 'Action') Option 1: You could add an integer variable, named something like "KeepOutsideLightsOff" Setting it to 1 keeps the program running, setting it to 0 prevents the program from running. You would add 1 more condition to the check. If From Sunrise To Sunset (same day) And ( Status 'Devices / Outside / Front' is not Off Or Status 'Devices / Outside / Porch' is not Off Or Status 'Devices / Outside / Outside1' is not Off ) And $KeepOutsideLightsOff is 1 Then Set Scene 'Scenes / Outside / All Outside' Off Else - No Actions - (To add one, press 'Action') Note: I made it an integer variable just to that changing it wouldn't unnecessarily trigger the program. You could make it a state variable, and changing it would trigger the program, but I don't think it would do much. Then create programs to set that variable to a 0 or 1. Option 2: If you have a spare KPL button, you could use that instead. Forget the variable, and use the status of the KPL button. The program would change to: If From Sunrise To Sunset (same day) And ( Status 'Devices / Outside / Front' is not Off Or Status 'Devices / Outside / Porch' is not Off Or Status 'Devices / Outside / Outside1' is not Off ) And Status '' is Off Then Set Scene 'Scenes / Outside / All Outside' Off Else - No Actions - (To add one, press 'Action') Note: I have it using the KPL button status of "Off" so that usually the KPL button won't be lit. So: Off=Program runs as usual (no daytime use) On=Allow daytime use
Recommended Posts