Jump to content

Setting a new on level programmatically


thirdwaver

Recommended Posts

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.

Link to comment

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

Link to comment

Archived

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


×
×
  • Create New...