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.

Setting a new on level programmatically

Featured Replies

Posted

I have a "goodnight mode" for the house that I trigger from my bed. When triggered, a few actions take place and a boolean is set to 1.   It automatically clears to 0 at sunrise.  When it's set to one, I'd like to change the level that my upstairs bathroom light comes on when turned on locally at the switch to a much dimmer level.  When I get up in the middle of the night, the full brightness blinds me.  Is it possible to programmatically set the level a light comes on at the switch?  I feel like I'm missing something obvious.

It is possible, and here is how I did it.

Sunset Program - [ID 0013][Parent 0001]

If
        Time is Sunset  + 25 minutes
 
Then
        Set Scene 'Outside Lights Dim' On
        Set 'FR Pool Table Lights' 30%
        In Scene 'MBR Bath Lights' Set 'MBR Bath Lights' 30% (On Level)
        In Scene 'MBR Recessed Lights' Set 'MBR Recessed Lights' 30% (On Level)
        $IsDayTime  = 0
 
Else
   - No Actions - (To add one, press 'Action')

 
The line you're interested in is the "In Scene.." lines. Those scenes are real simple - the switch is set to controller and the switch is set as responder as well. The sunrise program is:

Sunrise Program - [ID 0012][Parent 0001]

If
        Time is Sunrise - 15 minutes
 
Then
        Set Scene 'Outside Lights Dim' Off
        In Scene 'MBR Bath Lights' Set 'MBR Bath Lights' 100% (On Level)
        In Scene 'MBR Recessed Lights' Set 'MBR Recessed Lights' 100% (On Level)
        $IsDayTime  = 1
 
Else
   - No Actions - (To add one, press 'Action')

 
Here's a screenshot of the bathroom lights, if that will help.


5aaf82f4a258f_ScreenShot2018-03-19at5_25_41AM.thumb.png.5273fb4408f580b7fbf26ab6aa001429.png

Guest
This topic is now 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.