Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103038

Apply lighting scene without turning the lights on

$
0
0

In my bedroom I have a IKEA Tradfri light, that I connect to HA through Zigbee2MQTT. Basic operation an automation of the light works fine, but I would like to have the light behave as follows:

Goal: When I turn on the light between 6am and 9pm I want the light to be full brightness, when I turn it on between 9pm and 6am I want the light to be at 25% brightness. I do not want to change the on/off state of the light when the switch to the new brightness happens. I do not want separate buttons for “bedroom daylight” and “bedroom nightlight” but a single “bedroom light” button that “knows what to do” at the time I push it.

I tried to set this up by turning on a scene via a time based automation, but a scene always requires the light to be switched on to change it’s brightness as it seems. Then I tried setting up one scene to change the brightness while also changing the state to on and a second one to change the state to off and have them run in sequence with the help of a script triggered by the time based automation, but this requires a delay of at least 200ms between the scenes causing the light to be on for 200+ms which is a bit annoying in a bedroom at 6am. Also this seems quite some effort for what seems to be a simple thing.

I’m quite new to HA and I can’t get rid of the feeling I am missing something obvious. Any pointers would be helpful.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103038

Trending Articles