Jump to content

Bedroom lighting timer


Recommended Posts

Posted

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

Boys light timer program.PNG

Posted

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:

image.thumb.png.8acdd70eb127d22ae6e4b4975c22648e.png

Posted

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.

 

Posted

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

Posted
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

Posted

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...