thirdwaver Posted March 18, 2018 Share Posted March 18, 2018 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
Wingsy Posted March 19, 2018 Share Posted March 19, 2018 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. Link to comment
Recommended Posts