Skip to content

Commit

Permalink
Don't run on "_press" events.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomike committed Feb 3, 2024
1 parent adb20fa commit b0b729d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ condition:
{{ trigger.event.data.command }}
{%- endif -%}
{%- endset -%}
{{ trigger_action not in ["","None"] }}
{{ trigger_action not in ["","None", "on_press", "up_press", "down_press", "off_press"] }}
# 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 b0b729d

Please sign in to comment.