From 278cc2951431277214365e9075145f806530d91b Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Thu, 9 Jan 2025 10:57:09 +0300 Subject: [PATCH 01/21] Added Support for zigbee2mqtt MQTT device triggers (mqtt) Preserving backwards compatability with zigbee2mqtt legacy entity action events (sensor._action) (legacy) --- .../controllers/ikea_e1743/ikea_e1743.yaml | 80 +++++++++++++++++-- 1 file changed, 72 insertions(+), 8 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 407d87ff..b882dfef 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -16,6 +16,7 @@ blueprint: 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. ℹī¸ Version 2025.01.02 + ℹī¸ Version 2025.01.07 - Added support for zigbee2mqtt mqtt device triggers - [yarafie] source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: @@ -31,11 +32,32 @@ blueprint: - ZHA - Zigbee2MQTT controller_device: - name: (deCONZ, ZHA) Controller Device - description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA. + # **YAR** - ADD START - To Support zigbee2mqtt mqtt device triggers when legacy=false + name: (deCONZ, ZHA, Zigbee2MQTT) Controller Device + # **YAR** - ADD END + description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA, Zigbee2MQTT. default: '' + # **YAR** - ADD START - Selector for devices to choose from selector: device: + filter: + # **YAR** - source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 + - integration: mqtt + manufacturer: IKEA + model: TRADFRI on/off switch + # **For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x + - integration: mqtt + manufacturer: IKEA + model: TRADFRI on/off switch (E1743) + # **YAR** - source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices + - integration: zha + manufacturer: IKEA of Sweden + model: TRADFRI on/off switch + - integration: deconz + manufacturer: IKEA of Sweden + model: TRADFRI on/off switch + multiple: false + # **YAR** - ADD END controller_entity: name: (Zigbee2MQTT) Controller Entity description: The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT. @@ -208,6 +230,7 @@ variables: button_down_short: ['off'] button_down_long: [move_1_83] button_down_release: [stop] + # **YAR** - source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 zigbee2mqtt: button_up_short: ['on'] button_up_long: [brightness_move_up] @@ -228,15 +251,48 @@ variables: # build data to send within a controller event controller_entity: !input controller_entity controller_device: !input controller_device - controller_id: '{% if integration_id=="zigbee2mqtt" %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}' + # **YAR** ADD START - Logic to handle z2m legacy + # **YAR** If user provided input for controller_entity assume legacy **Maybe There Is A Better Way To Do This** + # **YAR** setting z2m_legacy to true with below code and set controller_id accordingly + z2m_legacy: '{{ integration_id == "zigbee2mqtt" and controller_entity not in ["", None, undefined] }}' + controller_id: '{% if z2m_legacy %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}' + # **YAR** ADD END mode: restart max_exceeded: silent trigger: - # trigger for zigbee2mqtt + # trigger for zigbee2mqtt entity sensor action events (legacy) - platform: event event_type: state_changed event_data: entity_id: !input controller_entity + # **YAR** - ADD START - zigbee2mqtt mqtt device action triggers + # triggers for zigbee2mqtt mqtt device action + - platform: device + domain: mqtt + device_id: !input controller_device + type: action + subtype: 'on' + - platform: device + domain: mqtt + device_id: !input controller_device + type: action + subtype: 'off' + - platform: device + domain: mqtt + device_id: !input controller_device + type: action + subtype: brightness_move_up + - platform: device + domain: mqtt + device_id: !input controller_device + type: action + subtype: brightness_move_down + - platform: device + domain: mqtt + device_id: !input controller_device + type: action + subtype: brightness_stop + # **YAR** - ADD END # trigger for other integrations - platform: event event_type: @@ -248,9 +304,12 @@ condition: - condition: and conditions: # check that the button event is not empty + # **YAR** - ADD START - zigbee2mqtt checks for device or entity - >- {%- set trigger_action -%} - {%- if integration_id == "zigbee2mqtt" -%} + {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} + {{ trigger.payload }} + {%- elif integration_id == "zigbee2mqtt" and z2m_legacy == true -%} {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} @@ -259,9 +318,10 @@ condition: {%- endif -%} {%- endset -%} {{ trigger_action not in ["","None"] }} - # only for zigbee2mqtt, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes + # only for zigbee2mqtt in legacy mode, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes # this is required since multiple state_changed events are fired for a single button press, with the result of the automation being triggered multiple times - - '{{ integration_id != "zigbee2mqtt" or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}' + - '{{ not (integration_id == "zigbee2mqtt" and z2m_legacy) or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}' + # **YAR** - ADD END action: # debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart # therefore previous runs must wait for the debounce delay before executing any other action @@ -271,14 +331,18 @@ action: # extract button event from the trigger # provide a single string value to check against - variables: + # **YAR** - ADD START - zigbee2mqtt actions for device or entity trigger_action: >- - {%- if integration_id == "zigbee2mqtt" -%} + {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} + {{ trigger.payload }} + {%- elif integration_id == "zigbee2mqtt" and z2m_legacy == true -%} {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} {%- elif integration_id == "zha" -%} {{ trigger.event.data.command }}{{"_" if trigger.event.data.args|length > 0}}{{ trigger.event.data.args|join("_") }} {%- endif -%} + # **YAR** - ADD END trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}' last_controller_event: '{{ (states(helper_last_controller_event) | from_json).a if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else "" }}' # update helper From a88920f1a4e8f5fadb1e5cf12df216c34f74ba0f Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Thu, 9 Jan 2025 14:59:21 +0300 Subject: [PATCH 02/21] Cleaned up code --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index b882dfef..5f86067c 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -34,7 +34,7 @@ blueprint: controller_device: # **YAR** - ADD START - To Support zigbee2mqtt mqtt device triggers when legacy=false name: (deCONZ, ZHA, Zigbee2MQTT) Controller Device - # **YAR** - ADD END + # **YAR** - ADD END - description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA, Zigbee2MQTT. default: '' # **YAR** - ADD START - Selector for devices to choose from @@ -57,7 +57,7 @@ blueprint: manufacturer: IKEA of Sweden model: TRADFRI on/off switch multiple: false - # **YAR** - ADD END + # **YAR** - ADD END - controller_entity: name: (Zigbee2MQTT) Controller Entity description: The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT. @@ -251,12 +251,12 @@ variables: # build data to send within a controller event controller_entity: !input controller_entity controller_device: !input controller_device - # **YAR** ADD START - Logic to handle z2m legacy + # **YAR** - ADD START - Logic to handle z2m legacy # **YAR** If user provided input for controller_entity assume legacy **Maybe There Is A Better Way To Do This** # **YAR** setting z2m_legacy to true with below code and set controller_id accordingly z2m_legacy: '{{ integration_id == "zigbee2mqtt" and controller_entity not in ["", None, undefined] }}' controller_id: '{% if z2m_legacy %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}' - # **YAR** ADD END + # **YAR** - ADD END - mode: restart max_exceeded: silent trigger: @@ -292,7 +292,7 @@ trigger: device_id: !input controller_device type: action subtype: brightness_stop - # **YAR** - ADD END + # **YAR** - ADD END - # trigger for other integrations - platform: event event_type: @@ -321,7 +321,7 @@ condition: # only for zigbee2mqtt in legacy mode, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes # this is required since multiple state_changed events are fired for a single button press, with the result of the automation being triggered multiple times - '{{ not (integration_id == "zigbee2mqtt" and z2m_legacy) or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}' - # **YAR** - ADD END + # **YAR** - ADD END - action: # debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart # therefore previous runs must wait for the debounce delay before executing any other action @@ -342,7 +342,7 @@ action: {%- elif integration_id == "zha" -%} {{ trigger.event.data.command }}{{"_" if trigger.event.data.args|length > 0}}{{ trigger.event.data.args|join("_") }} {%- endif -%} - # **YAR** - ADD END + # **YAR** - ADD END - trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}' last_controller_event: '{{ (states(helper_last_controller_event) | from_json).a if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else "" }}' # update helper From c6e162676e649d5228476b320a7e22d9aeacf145 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:48:28 +0000 Subject: [PATCH 03/21] bump blueprint version to 2025.01.10 --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 5f86067c..0db62ae9 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -15,8 +15,7 @@ blueprint: 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. - ℹī¸ Version 2025.01.02 - ℹī¸ Version 2025.01.07 - Added support for zigbee2mqtt mqtt device triggers - [yarafie] + ℹī¸ Version 2025.01.10 source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: From a8a1b4977c6f35bfa66cd37fb3bfc2f3c20fcdb5 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:53:41 +0000 Subject: [PATCH 04/21] clean up comments --- .../controllers/ikea_e1743/ikea_e1743.yaml | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 0db62ae9..be1aab65 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -31,32 +31,28 @@ blueprint: - ZHA - Zigbee2MQTT controller_device: - # **YAR** - ADD START - To Support zigbee2mqtt mqtt device triggers when legacy=false name: (deCONZ, ZHA, Zigbee2MQTT) Controller Device - # **YAR** - ADD END - description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA, Zigbee2MQTT. default: '' - # **YAR** - ADD START - Selector for devices to choose from selector: device: filter: - # **YAR** - source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 + # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 - integration: mqtt manufacturer: IKEA model: TRADFRI on/off switch - # **For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x + # For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x - integration: mqtt manufacturer: IKEA model: TRADFRI on/off switch (E1743) - # **YAR** - source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices - integration: zha manufacturer: IKEA of Sweden model: TRADFRI on/off switch + # source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices - integration: deconz manufacturer: IKEA of Sweden model: TRADFRI on/off switch multiple: false - # **YAR** - ADD END - controller_entity: name: (Zigbee2MQTT) Controller Entity description: The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT. @@ -250,12 +246,9 @@ variables: # build data to send within a controller event controller_entity: !input controller_entity controller_device: !input controller_device - # **YAR** - ADD START - Logic to handle z2m legacy - # **YAR** If user provided input for controller_entity assume legacy **Maybe There Is A Better Way To Do This** - # **YAR** setting z2m_legacy to true with below code and set controller_id accordingly + # if integration is zigbee2mqtt and input for controller_entity is set, assume legacy mode z2m_legacy: '{{ integration_id == "zigbee2mqtt" and controller_entity not in ["", None, undefined] }}' controller_id: '{% if z2m_legacy %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}' - # **YAR** - ADD END - mode: restart max_exceeded: silent trigger: @@ -264,7 +257,6 @@ trigger: event_type: state_changed event_data: entity_id: !input controller_entity - # **YAR** - ADD START - zigbee2mqtt mqtt device action triggers # triggers for zigbee2mqtt mqtt device action - platform: device domain: mqtt @@ -291,7 +283,6 @@ trigger: device_id: !input controller_device type: action subtype: brightness_stop - # **YAR** - ADD END - # trigger for other integrations - platform: event event_type: @@ -303,7 +294,6 @@ condition: - condition: and conditions: # check that the button event is not empty - # **YAR** - ADD START - zigbee2mqtt checks for device or entity - >- {%- set trigger_action -%} {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} @@ -320,7 +310,6 @@ condition: # only for zigbee2mqtt in legacy mode, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes # this is required since multiple state_changed events are fired for a single button press, with the result of the automation being triggered multiple times - '{{ not (integration_id == "zigbee2mqtt" and z2m_legacy) or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}' - # **YAR** - ADD END - action: # debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart # therefore previous runs must wait for the debounce delay before executing any other action @@ -330,7 +319,6 @@ action: # extract button event from the trigger # provide a single string value to check against - variables: - # **YAR** - ADD START - zigbee2mqtt actions for device or entity trigger_action: >- {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} {{ trigger.payload }} @@ -341,7 +329,6 @@ action: {%- elif integration_id == "zha" -%} {{ trigger.event.data.command }}{{"_" if trigger.event.data.args|length > 0}}{{ trigger.event.data.args|join("_") }} {%- endif -%} - # **YAR** - ADD END - trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}' last_controller_event: '{{ (states(helper_last_controller_event) | from_json).a if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else "" }}' # update helper From 351ef54c45f1ccc72807b7a5aa866dc8fcb30bad Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:54:40 +0000 Subject: [PATCH 05/21] prettier write --- .../controllers/ikea_e1743/ikea_e1743.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index be1aab65..e0e02549 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -37,21 +37,21 @@ blueprint: selector: device: filter: - # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 - - integration: mqtt - manufacturer: IKEA - model: TRADFRI on/off switch - # For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x - - integration: mqtt - manufacturer: IKEA - model: TRADFRI on/off switch (E1743) - - integration: zha - manufacturer: IKEA of Sweden - model: TRADFRI on/off switch - # source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices - - integration: deconz - manufacturer: IKEA of Sweden - model: TRADFRI on/off switch + # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 + - integration: mqtt + manufacturer: IKEA + model: TRADFRI on/off switch + # For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x + - integration: mqtt + manufacturer: IKEA + model: TRADFRI on/off switch (E1743) + - integration: zha + manufacturer: IKEA of Sweden + model: TRADFRI on/off switch + # source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices + - integration: deconz + manufacturer: IKEA of Sweden + model: TRADFRI on/off switch multiple: false controller_entity: name: (Zigbee2MQTT) Controller Entity From 7148deb7a35588067935d72592af4b71dad3430f Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:06:26 +0000 Subject: [PATCH 06/21] update controller entity input description --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index e0e02549..50564630 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -54,8 +54,10 @@ blueprint: model: TRADFRI on/off switch multiple: false controller_entity: - name: (Zigbee2MQTT) Controller Entity - description: The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT. + name: (Zigbee2MQTT)(Deprecated) Controller Entity + description: >- + The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT and Legacy Action Sensors are enabled. + This input is deprecated in favor of the Controller Device input, and will be removed in a future release. default: '' selector: entity: From e3b1a74b0de66eef15c9dc984aba0f14ffa66af9 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:20:26 +0000 Subject: [PATCH 07/21] docs: add support for deprecated inputs --- website/src/components/blueprints_docs/Input.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/components/blueprints_docs/Input.jsx b/website/src/components/blueprints_docs/Input.jsx index 80d92d04..99d64b90 100644 --- a/website/src/components/blueprints_docs/Input.jsx +++ b/website/src/components/blueprints_docs/Input.jsx @@ -52,7 +52,7 @@ const styles = { }, } -function Input({ selector, required, name, description }) { +function Input({ selector, required, name, description, deprecated }) { const selectorVal = selector ? selectors[selector] : selectors.none return (
@@ -62,7 +62,8 @@ function Input({ selector, required, name, description }) { {required} Required ) : ( Optional - )} + )}{' '} + {deprecated && Deprecated}

From 2eb5320623ddf99ed90640a3c9b89edd7c57cf04 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:21:28 +0000 Subject: [PATCH 08/21] docs: update input docs and changelog for ikea e1743 --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 2 +- website/docs/blueprints/controllers/ikea_e1743.mdx | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 50564630..0993a65d 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -54,7 +54,7 @@ blueprint: model: TRADFRI on/off switch multiple: false controller_entity: - name: (Zigbee2MQTT)(Deprecated) Controller Entity + name: (Optional)(Deprecated) Controller Entity description: >- The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT and Legacy Action Sensors are enabled. This input is deprecated in favor of the Controller Device input, and will be removed in a future release. diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 486113df..8c51df50 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -49,15 +49,15 @@ This integration provides the entity which must be provided to the blueprint in /> Date: Thu, 9 Jan 2025 23:26:20 +0000 Subject: [PATCH 09/21] more compact boolean tests in jinja templates --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 0993a65d..f30b0a48 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -298,9 +298,9 @@ condition: # check that the button event is not empty - >- {%- set trigger_action -%} - {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} + {%- if integration_id == "zigbee2mqtt" and not z2m_legacy -%} {{ trigger.payload }} - {%- elif integration_id == "zigbee2mqtt" and z2m_legacy == true -%} + {%- elif integration_id == "zigbee2mqtt" and z2m_legacy -%} {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} @@ -322,9 +322,9 @@ action: # provide a single string value to check against - variables: trigger_action: >- - {%- if integration_id == "zigbee2mqtt" and z2m_legacy == false -%} + {%- if integration_id == "zigbee2mqtt" and not z2m_legacy -%} {{ trigger.payload }} - {%- elif integration_id == "zigbee2mqtt" and z2m_legacy == true -%} + {%- elif integration_id == "zigbee2mqtt" and z2m_legacy -%} {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} From f130c2a47f93fa8d0d49b8dbfe7613dfacc8ada6 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:16:04 +0000 Subject: [PATCH 10/21] reorder selectors, add blakadder source --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index f30b0a48..be9aa392 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -37,18 +37,18 @@ blueprint: selector: device: filter: - # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 + # For backwards compatibility with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x - integration: mqtt manufacturer: IKEA - model: TRADFRI on/off switch - # For backwards compatability with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x + model: TRADFRI on/off switch (E1743) + # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 + # source: https://zigbee.blakadder.com/Ikea_E1743.html - integration: mqtt manufacturer: IKEA - model: TRADFRI on/off switch (E1743) + model: TRADFRI on/off switch - integration: zha manufacturer: IKEA of Sweden model: TRADFRI on/off switch - # source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices - integration: deconz manufacturer: IKEA of Sweden model: TRADFRI on/off switch From be48016df7f7cf8ccc8a7b9207d96d9b85826e2f Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Sat, 11 Jan 2025 21:09:37 +0300 Subject: [PATCH 11/21] Cleaned up code and re-organized to use as base --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index be9aa392..6407536e 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -15,7 +15,7 @@ blueprint: 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. - ℹī¸ Version 2025.01.10 + ℹī¸ Version 2025.01.12 source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: @@ -37,15 +37,16 @@ blueprint: selector: device: filter: - # For backwards compatibility with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x - - integration: mqtt - manufacturer: IKEA - model: TRADFRI on/off switch (E1743) # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 # source: https://zigbee.blakadder.com/Ikea_E1743.html - integration: mqtt manufacturer: IKEA model: TRADFRI on/off switch + # For backwards compatibility with z2m 1.x. model_id is added to end of model rather than a seperate attribute in z2m 2.x + - integration: mqtt + manufacturer: IKEA + model: TRADFRI on/off switch (E1743) + # source: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices - integration: zha manufacturer: IKEA of Sweden model: TRADFRI on/off switch @@ -227,8 +228,8 @@ variables: button_down_short: ['off'] button_down_long: [move_1_83] button_down_release: [stop] - # **YAR** - source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 zigbee2mqtt: + # source: https://www.zigbee2mqtt.io/devices/E1743.html#ikea-e1743 button_up_short: ['on'] button_up_long: [brightness_move_up] button_up_release: [brightness_stop] From 289b333656b92f66ffbc8dd5e1bb7d5d8bce2c8b Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:03:48 +0000 Subject: [PATCH 12/21] improve blueprint docs, add changelog link --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 6407536e..32ef99c5 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -11,11 +11,14 @@ blueprint: Hooks allow to easily create controller-based automations for interacting with media players, lights, covers and more. See the list of [Hooks available for this controller](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743#available-hooks) for additional details. - 📕 Full documentation regarding this blueprint is available [here](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743). + ## More Info - 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. + ℹī¸ Version 2025.01.15 + 📝 [Changelog](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743/#changelog) + 📕 [Full documentation](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743) - ℹī¸ Version 2025.01.12 + 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. Please consider **[leaving a star on GitHub](https://github.com/EPMatt/awesome-ha-blueprints)**! 🌟 + source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: From 45ad8ff141a63272437f1b2ce3138b76abe7a1f0 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:37:05 +0000 Subject: [PATCH 13/21] docs: add breaking change notice to changelog --- website/docs/blueprints/controllers/ikea_e1743.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 8c51df50..592f00ad 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -258,4 +258,11 @@ It's also important to note that the controller doesn't natively support double - **2021-10-26**: Standardize blueprints structure and inputs naming across the whole collection. Improve blueprint documentation. No functionality change. - **2022-08-08**: Optimize characters usage for the `helper_last_controller_event` text input. - **2025-01-02**: Remove spaces to match new helper format in Home Assistant 2023.5.x. ([@LordSushiPhoenix](https://github.com/LordSushiPhoenix)) -- **2025-01-10**: Add Support for Zigbee2MQTT MQTT device triggers, preserving backwards compatability with legacy sensor action events. ([@yarafie](https://github.com/yarafie)) +- **2025-01-15**: + + :warning: **Breaking Change**: + + Migrate to Zigbee2MQTT MQTT Device Triggers. ([@yarafie](https://github.com/yarafie)) + The `controller_entity` input has been deprecated, and `controller_device` is now mandatory. + If you are a Zigbee2MQTT user and plan to update this blueprint, please make sure to remove the `controller_entity` input from your automation config and add the device ID of your controller to the `controller_device` input. + To obtain the device ID from your controller, configure the automation from the UI and use the device selector dropdown on the `controller_device` input to select your controller. \ No newline at end of file From 9c1800f48327a813bdcd8bc81e08b59b497ea62b Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:39:44 +0000 Subject: [PATCH 14/21] prettier: format --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 2 +- website/docs/blueprints/controllers/ikea_e1743.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 32ef99c5..ea03d38c 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -18,7 +18,7 @@ blueprint: 📕 [Full documentation](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743) 🚀 This blueprint is part of the **[Awesome HA Blueprints](https://epmatt.github.io/awesome-ha-blueprints) project**. Please consider **[leaving a star on GitHub](https://github.com/EPMatt/awesome-ha-blueprints)**! 🌟 - + source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 592f00ad..4d419172 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -265,4 +265,4 @@ It's also important to note that the controller doesn't natively support double Migrate to Zigbee2MQTT MQTT Device Triggers. ([@yarafie](https://github.com/yarafie)) The `controller_entity` input has been deprecated, and `controller_device` is now mandatory. If you are a Zigbee2MQTT user and plan to update this blueprint, please make sure to remove the `controller_entity` input from your automation config and add the device ID of your controller to the `controller_device` input. - To obtain the device ID from your controller, configure the automation from the UI and use the device selector dropdown on the `controller_device` input to select your controller. \ No newline at end of file + To obtain the device ID from your controller, configure the automation from the UI and use the device selector dropdown on the `controller_device` input to select your controller. From 04a5cfed4cda9d9cd26d272c2713afd30d105b0e Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Thu, 16 Jan 2025 15:21:43 +0300 Subject: [PATCH 15/21] Migrate to Zigbee2MQTT MQTT Device Triggers. --- .../controllers/ikea_e1743/ikea_e1743.yaml | 33 +++---------------- .../blueprints/controllers/ikea_e1743.mdx | 2 +- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index ea03d38c..13cf1c6f 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -34,7 +34,7 @@ blueprint: - ZHA - Zigbee2MQTT controller_device: - name: (deCONZ, ZHA, Zigbee2MQTT) Controller Device + name: (Required) (deCONZ, ZHA, Zigbee2MQTT) Controller Device description: The controller device to use for the automation. Choose a value only if the remote is integrated with deCONZ, ZHA, Zigbee2MQTT. default: '' selector: @@ -57,15 +57,6 @@ blueprint: manufacturer: IKEA of Sweden model: TRADFRI on/off switch multiple: false - controller_entity: - name: (Optional)(Deprecated) Controller Entity - description: >- - The action sensor of the controller to use for the automation. Choose a value only if the remote is integrated with Zigbee2MQTT and Legacy Action Sensors are enabled. - This input is deprecated in favor of the Controller Device input, and will be removed in a future release. - default: '' - selector: - entity: - domain: sensor helper_last_controller_event: name: (Required) Helper - Last Controller Event description: Input Text used to store the last event fired by the controller. You will need to manually create a text input entity for this, please read the blueprint Additional Notes for more info. @@ -250,19 +241,10 @@ variables: # integrations which need to store the previous press event to determine which button was released integrations_with_prev_event_storage: [zha, zigbee2mqtt] # build data to send within a controller event - controller_entity: !input controller_entity - controller_device: !input controller_device - # if integration is zigbee2mqtt and input for controller_entity is set, assume legacy mode - z2m_legacy: '{{ integration_id == "zigbee2mqtt" and controller_entity not in ["", None, undefined] }}' - controller_id: '{% if z2m_legacy %}{{controller_entity}}{% else %}{{controller_device}}{% endif %}' + controller_id: !input controller_device mode: restart max_exceeded: silent trigger: - # trigger for zigbee2mqtt entity sensor action events (legacy) - - platform: event - event_type: state_changed - event_data: - entity_id: !input controller_entity # triggers for zigbee2mqtt mqtt device action - platform: device domain: mqtt @@ -302,10 +284,8 @@ condition: # check that the button event is not empty - >- {%- set trigger_action -%} - {%- if integration_id == "zigbee2mqtt" and not z2m_legacy -%} + {%- if integration_id == "zigbee2mqtt" -%} {{ trigger.payload }} - {%- elif integration_id == "zigbee2mqtt" and z2m_legacy -%} - {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} {%- elif integration_id == "zha" -%} @@ -313,9 +293,6 @@ condition: {%- endif -%} {%- endset -%} {{ trigger_action not in ["","None"] }} - # only for zigbee2mqtt in legacy mode, check if the event is relative to a real state change, and not only some minor changes in the sensor attributes - # this is required since multiple state_changed events are fired for a single button press, with the result of the automation being triggered multiple times - - '{{ not (integration_id == "zigbee2mqtt" and z2m_legacy) or trigger.event.data.new_state.state != trigger.event.data.old_state.state }}' action: # debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart # therefore previous runs must wait for the debounce delay before executing any other action @@ -326,10 +303,8 @@ action: # provide a single string value to check against - variables: trigger_action: >- - {%- if integration_id == "zigbee2mqtt" and not z2m_legacy -%} + {%- if integration_id == "zigbee2mqtt" -%} {{ trigger.payload }} - {%- elif integration_id == "zigbee2mqtt" and z2m_legacy -%} - {{ trigger.event.data.new_state.state }} {%- elif integration_id == "deconz" -%} {{ trigger.event.data.event }} {%- elif integration_id == "zha" -%} diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 4d419172..c47a2a7f 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -55,7 +55,7 @@ This integration provides the entity which must be provided to the blueprint in /> From a7f96ac60242ce6a1dc3669916beda0b5441a24b Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Thu, 16 Jan 2025 15:39:18 +0300 Subject: [PATCH 16/21] Migrate to Zigbee2MQTT MQTT Device Triggers. --- website/docs/blueprints/controllers/ikea_e1743.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index c47a2a7f..5f5743ce 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -55,7 +55,7 @@ This integration provides the entity which must be provided to the blueprint in /> From a7c8e5d3553e48d00137f17b7499ae46f7554dc8 Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Sun, 19 Jan 2025 08:23:00 +0300 Subject: [PATCH 17/21] Migrate to Zigbee2MQTT MQTT Device Triggers. --- website/docs/blueprints/controllers/ikea_e1743.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 5f5743ce..4d419172 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -55,7 +55,7 @@ This integration provides the entity which must be provided to the blueprint in /> From c9e3b4a9dd5c7bc39e7e888b1432a879d0e0275a Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Sun, 19 Jan 2025 14:56:46 +0300 Subject: [PATCH 18/21] Improved readability --- website/docs/blueprints/controllers/ikea_e1743.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index 4d419172..c230dc84 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -263,6 +263,7 @@ It's also important to note that the controller doesn't natively support double :warning: **Breaking Change**: Migrate to Zigbee2MQTT MQTT Device Triggers. ([@yarafie](https://github.com/yarafie)) + The `controller_entity` input has been deprecated, and `controller_device` is now mandatory. If you are a Zigbee2MQTT user and plan to update this blueprint, please make sure to remove the `controller_entity` input from your automation config and add the device ID of your controller to the `controller_device` input. To obtain the device ID from your controller, configure the automation from the UI and use the device selector dropdown on the `controller_device` input to select your controller. From 07ec0465249840d8bbe4bbd7fcf657595df41be5 Mon Sep 17 00:00:00 2001 From: Yasir Ra Date: Tue, 21 Jan 2025 12:20:57 +0300 Subject: [PATCH 19/21] Migrate to Zigbee2MQTT MQTT Device Triggers. --- .../controllers/ikea_e1743/ikea_e1743.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 13cf1c6f..90e3604b 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -22,7 +22,7 @@ blueprint: source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e1743/ikea_e1743.yaml domain: automation homeassistant: - min_version: 2023.5.0 + min_version: 2024.10.0 input: integration: name: (Required) Integration @@ -244,41 +244,41 @@ variables: controller_id: !input controller_device mode: restart max_exceeded: silent -trigger: +triggers: # triggers for zigbee2mqtt mqtt device action - - platform: device + - trigger: device domain: mqtt device_id: !input controller_device type: action subtype: 'on' - - platform: device + - trigger: device domain: mqtt device_id: !input controller_device type: action subtype: 'off' - - platform: device + - trigger: device domain: mqtt device_id: !input controller_device type: action subtype: brightness_move_up - - platform: device + - trigger: device domain: mqtt device_id: !input controller_device type: action subtype: brightness_move_down - - platform: device + - trigger: device domain: mqtt device_id: !input controller_device type: action subtype: brightness_stop - # trigger for other integrations - - platform: event + # triggers for other integrations + - trigger: event event_type: - deconz_event - zha_event event_data: device_id: !input controller_device -condition: +conditions: - condition: and conditions: # check that the button event is not empty @@ -293,7 +293,7 @@ condition: {%- endif -%} {%- endset -%} {{ trigger_action not in ["","None"] }} -action: +actions: # debouncing - when automation is triggered multiple times, the last automation run is the one which completes execution, due to mode restart # therefore previous runs must wait for the debounce delay before executing any other action # if the delay expires and the automation is still running it means it's the last run and execution can continue @@ -313,7 +313,7 @@ action: trigger_delta: '{{ (as_timestamp(now()) - ((states(helper_last_controller_event) | from_json).t if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}' last_controller_event: '{{ (states(helper_last_controller_event) | from_json).a if helper_last_controller_event is not none and (states(helper_last_controller_event) | regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else "" }}' # update helper - - service: input_text.set_value + - action: input_text.set_value data: entity_id: !input helper_last_controller_event value: '{{ {"a":trigger_action,"t":as_timestamp(now())} | to_json }}' @@ -330,7 +330,7 @@ action: - conditions: '{{ trigger_action | string in states(helper_last_controller_event) and trigger_delta | int <= helper_double_press_delay | int }}' sequence: # store the double press event in the last controller event helper - - service: input_text.set_value + - action: input_text.set_value data: entity_id: !input helper_last_controller_event value: '{{ {"a":"double_press","t":as_timestamp(now())} | to_json }}' @@ -413,7 +413,7 @@ action: - conditions: '{{ trigger_action | string in states(helper_last_controller_event) and trigger_delta | int <= helper_double_press_delay | int }}' sequence: # store the double press event in the last controller event helper - - service: input_text.set_value + - action: input_text.set_value data: entity_id: !input helper_last_controller_event value: '{{ {"a":"double_press","t":as_timestamp(now())} | to_json }}' From f63c9a5bca04d6ee6954ca82acbcc9c1f6388f24 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Wed, 22 Jan 2025 23:03:11 +0000 Subject: [PATCH 20/21] docs(ikea_e1743): update changelog, remove old input --- website/docs/blueprints/controllers/ikea_e1743.mdx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/website/docs/blueprints/controllers/ikea_e1743.mdx b/website/docs/blueprints/controllers/ikea_e1743.mdx index c230dc84..dcce2fc6 100644 --- a/website/docs/blueprints/controllers/ikea_e1743.mdx +++ b/website/docs/blueprints/controllers/ikea_e1743.mdx @@ -53,12 +53,6 @@ This integration provides the entity which must be provided to the blueprint in selector='device' required='deCONZ, ZHA, Zigbee2MQTT' /> - Date: Wed, 22 Jan 2025 23:03:24 +0000 Subject: [PATCH 21/21] docs(ikea_e1743): bump version --- blueprints/controllers/ikea_e1743/ikea_e1743.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml index 90e3604b..a378e1fa 100644 --- a/blueprints/controllers/ikea_e1743/ikea_e1743.yaml +++ b/blueprints/controllers/ikea_e1743/ikea_e1743.yaml @@ -13,7 +13,7 @@ blueprint: ## More Info - ℹī¸ Version 2025.01.15 + ℹī¸ Version 2025.01.23 📝 [Changelog](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743/#changelog) 📕 [Full documentation](https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743)