Fix brightness up from off state
This commit is contained in:
parent
9b0daeb28c
commit
b79b75ef9d
1 changed files with 14 additions and 2 deletions
|
|
@ -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 }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue