From ac4ac54c04d2a0a1413fdd138ad8a3ca3f995af4 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 18 Apr 2025 14:15:04 +0200 Subject: [PATCH] fix: use device id for zha double press actions (#27) --- ikea_E1743-E2201-E2213_ZHA-Z2M_control-anything.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-anything.yaml b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-anything.yaml index b3633dd..66d515a 100644 --- a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-anything.yaml +++ b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-anything.yaml @@ -314,6 +314,7 @@ variables: off_double_press_exposed: !input off_double_press_exposed remote_devices: !input remote_devices remote_devices_names: "{{ remote_devices | map('device_attr', 'name') | list }}" + zha_device_id: "{{ trigger.event.data.device_id }}" condition: - condition: template value_template: >- @@ -345,7 +346,7 @@ actions: - trigger: event event_type: zha_event event_data: - device_id: "{{ remote_device }}" + device_id: "{{ zha_device_id }}" command: "on" cluster_id: 6 endpoint_id: 1 @@ -398,7 +399,7 @@ actions: - trigger: event event_type: zha_event event_data: - device_id: "{{ remote_device }}" + device_id: "{{ zha_device_id }}" command: "off" cluster_id: 6 endpoint_id: 1