Skip to content

Commit

Permalink
ikea_e2001_e2002: handle "unknown" state
Browse files Browse the repository at this point in the history
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
  • Loading branch information
beardhatcode authored and EPMatt committed Jan 2, 2025
1 parent 2066c43 commit dbfe4d3
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit dbfe4d3

Please sign in to comment.