fix: use device id for zha double press actions (#27)
This commit is contained in:
@@ -314,6 +314,7 @@ variables:
|
|||||||
off_double_press_exposed: !input off_double_press_exposed
|
off_double_press_exposed: !input off_double_press_exposed
|
||||||
remote_devices: !input remote_devices
|
remote_devices: !input remote_devices
|
||||||
remote_devices_names: "{{ remote_devices | map('device_attr', 'name') | list }}"
|
remote_devices_names: "{{ remote_devices | map('device_attr', 'name') | list }}"
|
||||||
|
zha_device_id: "{{ trigger.event.data.device_id }}"
|
||||||
condition:
|
condition:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
@@ -345,7 +346,7 @@ actions:
|
|||||||
- trigger: event
|
- trigger: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
event_data:
|
event_data:
|
||||||
device_id: "{{ remote_device }}"
|
device_id: "{{ zha_device_id }}"
|
||||||
command: "on"
|
command: "on"
|
||||||
cluster_id: 6
|
cluster_id: 6
|
||||||
endpoint_id: 1
|
endpoint_id: 1
|
||||||
@@ -398,7 +399,7 @@ actions:
|
|||||||
- trigger: event
|
- trigger: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
event_data:
|
event_data:
|
||||||
device_id: "{{ remote_device }}"
|
device_id: "{{ zha_device_id }}"
|
||||||
command: "off"
|
command: "off"
|
||||||
cluster_id: 6
|
cluster_id: 6
|
||||||
endpoint_id: 1
|
endpoint_id: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user