I’d like to change the brightness of my light so that it turns on with a certain brightness when switched with a wall switch. The problem is that in HA I can apparently only set light brightness when the light is on. This automation works fine:
But if I change the - service: light.turn_on to - service: light.turn_off, it doesn’t work anymore.
I tried to change the brightness by turning the light on with a certain brightness and then immediately turn it off. But it is not fast enough and the light flashes with this approach.
How can I change the brightness of my light (it is controlled by a smart dimmer QS-Zigbee-D02-TRIAC-L) without actually turning the light on? Thank you.
To my knowledge, only the LIFX integration supports setting a light’s parameters while the light is off using a custom service call: LIFX Service lifx.set_state
For most other lighting integrations, Home Assistant sets the lights parameters (like brightness) using the standard light.turn_on service.