Jump to content

Program to set max brightness depending on time of day


homejones

Recommended Posts

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!

Posted

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%.

Posted
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.

Posted
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.

Posted

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.

Posted
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).

Posted

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.

Posted
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.

Posted

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.

Posted
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!

Posted
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.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...