Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bedroom lighting timer

Featured Replies

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

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

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.

 

Edited by Craigb

  • Author

I've made the change and will see how it works tomorrow!  Thank you both.

  • Author

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

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

  • Author

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.