seanB Posted October 29, 2018 Posted October 29, 2018 I tried to write a timer program to shut off lights that are left on for 30 minutes in my boys' bedroom. Not sure this will work, but would appreciate feedback. Using KPLs to control fanlincs. Between 7am and 7pm, if either KPL light on button is pressed, 30 mins later the light will be turned off (I think). Sean
paulbates Posted October 29, 2018 Posted October 29, 2018 Hi Sean The only thing I would do differently is add parens around the the bottom 2 lines. Use the Add And tool (1), use the move line up button (2) and make your program look like this If from 7 for 12 hours and( Control max switched off or Control loch switched off ( Then ...... My similar example is here:
Craigb Posted October 29, 2018 Posted October 29, 2018 The above original poster's program will turn off the lights when: A ) Between 7A and 7P 30 minutes after Max KPL Light is turned on B ) At any time 30 minutes after Loch KPL Light is turned on. You need to use the AND ( ) and put the two control statements within the AND group. You may also need to put the AND group First in the program to get it to trigger properly.
seanB Posted October 29, 2018 Author Posted October 29, 2018 I've made the change and will see how it works tomorrow! Thank you both.
paulbates Posted October 29, 2018 Posted October 29, 2018 You can put a 1 or 2 minute wait in to test it... if it works, bump it up to 30 Paul
seanB Posted October 29, 2018 Author Posted October 29, 2018 This worked perfectly. Just had to add the parentheses. I also need to add a line to change the KPL button lighting, but it's working great now. Thanks for the help, all. Sean
paulbates Posted October 29, 2018 Posted October 29, 2018 Just now, seanB said: I also need to add a line to change the KPL button lighting, but it's working great now. Another way to do this is to turn them all off at once by using the Link Management menu of the admin console create a "New Scene".. drag the switches and key pad button in as responders only... do not check the controller box. In the program, turn the scene off, instead of each device. This will shut them off all at once, instead of one at a time Paul
seanB Posted October 29, 2018 Author Posted October 29, 2018 I'll admit, setting up the KPLs to control fans and lights was a pain to get through initially. So I haven't used scenes much but I've done as you describe and even EE/non-CS brain can understand it!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.