Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ikea_e2001_e2002, zigbee2mqtt: handle "unknown" state #617

Merged
merged 2 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down
4 changes: 3 additions & 1 deletion website/docs/blueprints/controllers/ikea_e2001_e2002.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Loading