Comfort Automation/ Security System Forums > Support > Comfort Installation and Programming Guide > Automation Programming > How do I combine holiday, timer and sunset responses |
Moderated by: slychiu |
Author | Post | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
John W UCM Pi Users
|
As the title says, I want a program to run at sunset, but only for a set number of days. Lets assume I want to turn on some lights at sunset, and off at midnight on those same days. I want this to happen for a month. I have a pair of responses to control the lights at the times, but cannot figure out what is the best way to trigger them. I can set a sunset response, but that will get triggered every day, all year. I can use a time program to run at a given time when its a holiday. The problem with this is, the time program happens at a given time which is great for the midnight turn off, but not for sunset. Also the holidays are single days, not for a duration of days. Add to this, there are only 24 holiday entries. If I could figure out how I can check which holiday has triggered my event I could set two holidays, one at the start and the other at the end, and then set or clear a flag that the sunset & midnight responses could check. since I can't see a way to do this though, whats the best way to achieve what I am after ? Cheers, john. |
|||||||||
slychiu Administrator
|
Example In the Sunset Response if Month = 12 Then Do LightsOn Endif This will happen for the whole month of december If you need to start in the middle of a month If Month=12 and Days >=15 OR Month =1 and Days <15 Then do LightsOn Endif |
|||||||||
John W UCM Pi Users
|
ok, thanks for that. So am I correct in thinking you can't actually trigger something off of when a holiday starts or stops as such, only check whether this day is a holiday ? And you cant check which holiday day/period it is ? I wanted to use a flag in my response rather than dates, so they are generic. I can do this by using another response to set the flag based on the dates as you have shown. That still needs me to edit one or more responses rather than setting holidays (or timers). Ideally I want to avoid having to edit the responses for each 'holiday' period, as these change each year. It would be really handy if it was possible to be able to set these periods using the tablet or phone app, rather than having to modify its programmed responses, otherwise the holiday entries are of limited use imo. Thanks again for your reply. |
|||||||||
slychiu Administrator
|
Correct. Holidays cannot trigger responses and you cannot check what holiday it is You could use Time Programs to set and clear a flag for the days that the sunset response would act to turn on the lights eg Time Program 1 - if Month=12 etc Set Flag X Time Program 2 if Month=12 etc clear Flag X In the sunset response you can test for Flag X |
|||||||||
John W UCM Pi Users
|
Thanks, I will do that. |
|||||||||
John W UCM Pi Users
|
Thanks, I will do that. |