From dbfe4d34d7b71ce3ed5d6a1daa87a7105d914052 Mon Sep 17 00:00:00 2001 From: Robbert Gurdeep Singh Date: Thu, 3 Oct 2024 23:58:07 +0200 Subject: [PATCH 1/2] ikea_e2001_e2002: handle "unknown" state Since the update to HA2024.10, the state of my zigbee2mqqt linked Stybar becomes "unknown" instead of "None" UI of stybar before the update: - changed to None 00:24:55 - 23 hours ago - changed to arrow_right_click 00:24:55 - 23 hours ago - changed to None 00:24:55 - 23 hours ago now the same event looks like: - became unknown 23:52:22 - 3 minutes ago - changed to arrow_right_click 23:52:22 - 3 minutes ago - became unknown 23:52:21 - 3 minutes ago --- blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml b/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml index 9f653357..d10654f6 100644 --- a/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml +++ b/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml @@ -382,7 +382,7 @@ condition: {{ trigger.event.data.command }}{{"_" if trigger.event.data.args|length > 0}}{{ trigger.event.data.args|join("_") }} {%- endif -%} {%- endset -%} - {{ trigger_action not in ["","None"] }} + {{ trigger_action not in ["","None","unknown"] }} # only for zigbee2mqtt, 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 }}' From 7376ff2c5cae057b70b22887e7d78b892f120006 Mon Sep 17 00:00:00 2001 From: EPMatt <30753195+EPMatt@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:26:13 +0100 Subject: [PATCH 2/2] docs: update changelog --- website/docs/blueprints/controllers/ikea_e2001_e2002.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/blueprints/controllers/ikea_e2001_e2002.mdx b/website/docs/blueprints/controllers/ikea_e2001_e2002.mdx index 83239c86..46f667f5 100644 --- a/website/docs/blueprints/controllers/ikea_e2001_e2002.mdx +++ b/website/docs/blueprints/controllers/ikea_e2001_e2002.mdx @@ -290,4 +290,6 @@ If you notice your controller is not behaving as expected please reset the devic - **2021-11-07**: first blueprint version :tada: - **2022-08-08**: Optimize characters usage for the `helper_last_controller_event` text input. -- **2025-01-02**: (ZHA) Fixed a bug preventing long pressing actions to be triggered. ([@Ivarvdb](https://github.com/Ivarvdb)) +- **2025-01-02**: + - (ZHA) Fixed a bug preventing long pressing actions to be triggered. ([@Ivarvdb](https://github.com/Ivarvdb)) + - (Zigbee2MQTT) handle "unknown" state. ([@beardhatcode](https://github.com/beardhatcode))