Directly set brightness for dimmer


I have a Zigbee dimmer (QS-Zigbee-D02-TRIAC-L) connected using Zigbee2mqtt. I would like to directly set the brightness for example to 50%. But if I open the automation dialog, I only have the options to increase or decrease the brightness. There is no possibility to set it directly. I tried to play with automation.yaml to see if there is a possibility that is not available in GUI, but I wasn’t successful neither.

Is there an option to directly set the brightness in automation? In the Lovelace GUI it is possible with the slider to set any brightness I want. So I guess it should be possible. But I’m not able to figure out how to do it.

Thank you.

Hi, did you manage to get this working, I am also trying to set the brightness with an automation…?

If it shows up as a light device, you should be able to set it directly with the light.turn_on command either via the GUI or scripting. (E.g., Light - Home Assistant)

    - service: light.turn_on
        entity_id: light.living_room
        brightness: 255
        kelvin: 2700