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.

Program to set max brightness depending on time of day

Featured Replies

Posted

Hi, I am new to ISY programming and this is my first attempt at a program.

 

I have a light switch (Dual band dimmer) in one of the bedrooms and I would like the on level to be set to 30% between 8pm and 1 hour before sunrise when I hit the switch (essentially ignoring the local on level).

 

I've figured out how to program the timing part. However, with my current program, when I hit the switch the lights turns on to the preset local on level (currently set at 60%), then the program executes and the brightness goes down to 30%. Ideally, I would like the program to be executed as soon as I hit the On button and bypass the local on level.

 

Here is my current program:

 

If

 

From 8pm

To Sunrise - 1 hour (next day)

 

And Status 'Baby's Room Light' > 30%

 

Then Set 'Baby's Room Light' 30%

 

Thanks!

Use the "Adjust Scene" command instead. So "Adjust Scene" and then pick "Baby's Room Light" in both drop downs and pick the 30% on level from the last drop down.

 

In the Else, do the same command but pick 100% from the last drop down. It will run the "Then" to set it to 30% at 8pm and then run the "Else" 1 hour before sunrise to set it back to 100%.

  • Author
Use the "Adjust Scene" command instead. So "Adjust Scene" and then pick "Baby's Room Light" in both drop downs and pick the 30% on level from the last drop down.

 

In the Else, do the same command but pick 100% from the last drop down. It will run the "Then" to set it to 30% at 8pm and then run the "Else" 1 hour before sunrise to set it back to 100%.

 

Hey this is awesome, thanks!

 

I currently don't have the switch setup in a Scene, would the device still be available in the "Adjust Scene" drop downs? Sorry, don't have access to my ISY right now so I can't see it.

Use the "Adjust Scene" command instead. So "Adjust Scene" and then pick "Baby's Room Light" in both drop downs and pick the 30% on level from the last drop down.

 

In the Else, do the same command but pick 100% from the last drop down. It will run the "Then" to set it to 30% at 8pm and then run the "Else" 1 hour before sunrise to set it back to 100%.

 

Hey this is awesome, thanks!

 

I currently don't have the switch setup in a Scene, would the device still be available in the "Adjust Scene" drop downs? Sorry, don't have access to my ISY right now so I can't see it.

 

Yes, the Adjust Scene has two drop downs: One is the scene you want to adjust ("Romantic Dinner" or "Movie Night" or whatever) and the second is the device within the scene you want to adjust ("Overhead Cans Switch" or "Track Lighting" or whatever). For the sake of this command, each device is also a scene all on its own that has only itself as a device...this should let you do what you want.

 

I don't have access either, but I'm pretty sure that's what you want to do. That should achieve the goal of setting the local values. If not there's another command in the drop down to do it.

Define an ISY Scene and add the SwitchLinc as a Controller in the Scene. When that is done the SwitchLinc node name will appear as a selectable item in both the Adjust Scene 'In Scene' and 'Set' parameters. When using the SwitchLinc node name in both parameters the ISY knows to change the Local On Level so the light turns On to 30% when the paddle is pressed On.

Define an ISY Scene and add the SwitchLinc as a Controller in the Scene. When that is done the SwitchLinc node name will appear as a selectable item in both the Adjust Scene 'In Scene' and 'Set' parameters. When using the SwitchLinc node name in both parameters the ISY knows to change the Local On Level so the light turns On to 30% when the paddle is pressed On.

Oh it actually has to be in a scene (even if just all by itself)? I thought the ISY listed each controller on its own (as if those one-device scenes were implied).

The Adjust Scene statement works on Scenes and devices associated with Scenes. If the node is not in a Scene the Adjust Scene statement does not list it as a selectable item.

The Adjust Scene statement works on Scenes and devices associated with Scenes. It the node is not in a Scene the Adjust Scene statement does list it as a selectable item.

I assume you mean "does not list". So you can just create a scene and add the device as a controller and have no responders...and then using Adjust Scene on that device within that scene will adjust the local load on level or ramp rate. That seem a bit obtuse, but not too bad.

Thanks. I corrected the previous post.

 

I guess a new statement could be architected, 'Adjust Device' which would support adjusting the Local On Level and Local Ramp Rate. UDI chose to include that function in the Adjust Scene statement which has the 'Scene' premise.

  • Author
Define an ISY Scene and add the SwitchLinc as a Controller in the Scene. When that is done the SwitchLinc node name will appear as a selectable item in both the Adjust Scene 'In Scene' and 'Set' parameters. When using the SwitchLinc node name in both parameters the ISY knows to change the Local On Level so the light turns On to 30% when the paddle is pressed On.

 

Thanks for all the help guys! My updated scene is as follows:

 

If 

   From 8pm
   To Sunrise - 1 hour (next day)

Then In Scene 'Baby's Room Light' Set 'Baby's Room Light' 30% (On Level)

 

Will this work correctly? Will my SwitchLinc revert to the normal On Level (60%) at Sunrise - 1 hour on the next day? Thanks!

My updated scene is as follows:

 

If 

   From 8pm
   To Sunrise - 1 hour (next day)

Then In Scene 'Baby's Room Light' Set 'Baby's Room Light' 30% (On Level)

 

Will this work correctly? Will my SwitchLinc revert to the normal On Level (60%) at Sunrise - 1 hour on the next day? Thanks!

 

No, you need the following:

Else In Scene 'Baby's Room Light' Set 'Baby's Room Light' 60% (On Level)

 

It doesn't apply the changes and automatically assume you want to back them out at the end of the time. You have to explicitly do that in the Else clause. The "Then" will run at 8pm and set it to 30%...then the "Else" will run at Surise-1H to set it back to 60%.

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.