GLENN52 Posted August 28, 2013 Posted August 28, 2013 Hello This my first post...I need help in writing a program..for my isy99pro. I have different outside switches(insteon relays, kpl.and switches) for post lights and porch light and side lights that have there own scenes that come on at different times..I have one all outside light scene that turns them all off at the same time... 11.04 pm that works find. What i would like to do is if any outside light is turn on for any reason between sunrise and sunset it's turned off in one minute.. Do I have to write a program for each...or can you write just one to check to see if any of the outside lights are on and to turn it off after one min. THANKS ( be gentle) Glenn
Xathros Posted August 28, 2013 Posted August 28, 2013 Welcome to the forum! Many of us do something quite similar. There are several approaches to this. You can have one program monitor the status of many devices and send a scene Off to the All Outside scene if one or more are on during the specified time frame: If ( Status Ouside Light 1 is On or Status Outside Light 2 is On or Status Post Light 1 is On or Status Porch Light Is On ) And Time is From Sunrise to Sunset (same day) Then Set Scene AllOutsideLights Off Else Or you can monitor each light individually: If Status PorchLight is On And Time is From Sunrise to Sunset (same day) Then Set PorchLight Off Else Depends on your needs. -Xathros
paulw Posted August 29, 2013 Posted August 29, 2013 If I am understanding correctly, it seems that Xathros forgot to have a one minute wait as the first command in "then" for the two examples.
oberkc Posted August 29, 2013 Posted August 29, 2013 it seems that Xathros forgot to have a one minute wait as the first command in "then" for the two examples Probably so.
Xathros Posted August 29, 2013 Posted August 29, 2013 Exactly. Sorry. What I posted is what my system does. If an outside light is turned on during the day, it turns back off instantly. No need to have it on in daylight - even for a minute. -Xathros Edited for spelling
paulw Posted August 29, 2013 Posted August 29, 2013 Sorry, I had overlooked the day time constraint, thought it was a night time example for him.
GLENN52 Posted September 4, 2013 Author Posted September 4, 2013 Hello ....thanks for your help I just got time to write the program....and it works for one light so now have make it work for all outside light scene. I don't get on the internet everyday...so thats why i didn't thank you sooner...so THANKS AGAIN... GLENN
Xathros Posted September 4, 2013 Posted September 4, 2013 GLENN52- No Problem. Always happy to help. -Xathros
Recommended Posts