Hi,
I have a dimmer switch which has the attribute brightness. I can adjust the brightness of this switch by pressing and holding one of the buttons.
I also have a dimmer with the brightness attribute.
Here is my automation for dimming the lights:
- alias: Dim1 dimmer test1
trigger:
- platform: mqtt
topic: zigbee2mqtt/dim1/action
payload: brightness_move_up_1
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/dimmer3/l1/set
payload_template: '{"brightness": {{ state_attr("sensor.dim1_action", "brightness")}}}'
The issue is that when I start pressing the button it immediately sets the brightness for the dimmer. So whatever the brightness of the switch was before I started dimming will be passed on to the dimmer. I would prefer to gradually update the brightness over time as the button is pressed. Is this possible?
My switch and dimmer:
switch: ROBB ROB_200-008-0 control via MQTT | Zigbee2MQTT
dimmer: Moes MS-105B control via MQTT | Zigbee2MQTT