Fix brightness up from off state

This commit is contained in:
Davíð Steinn Geirsson 2025-09-06 00:29:02 +00:00
parent 9b0daeb28c
commit b79b75ef9d

View file

@ -73,6 +73,12 @@ action:
- condition: template - condition: template
value_template: "{{ trigger.payload == 'off_press' }}" value_template: "{{ trigger.payload == 'off_press' }}"
sequence: sequence:
- service: mqtt.publish
data:
topic: "{{ target_topic }}"
payload: '{ "brightness": 0 }'
qos: 0
retain: false
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: "{{ target_topic }}" topic: "{{ target_topic }}"
@ -83,6 +89,12 @@ action:
- condition: template - condition: template
value_template: "{{ trigger.payload == 'up_press' }}" value_template: "{{ trigger.payload == 'up_press' }}"
sequence: sequence:
- service: mqtt.publish
data:
topic: "{{ target_topic }}"
payload: '{ "state": "ON" }'
qos: 0
retain: false
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: "{{ target_topic }}" topic: "{{ target_topic }}"