I want to trigger an automatiin by a specific state_changed event:
event_type: state_changed
data:
entity_id: event.dashbutton_wohnzimmer_action
old_state:
entity_id: event.dashbutton_wohnzimmer_action
attributes:
event_types:
- single
- double
- hold
- "on"
- "off"
event_type: double
icon: mdi:gesture-double-tap
friendly_name: DashButton - Wohnzimmer Action
context:
id: 01JHMHHM3ANS6S474TWR75HCDR
parent_id: null
user_id: null
new_state:
entity_id: event.dashbutton_wohnzimmer_action
state: "2025-01-15T08:33:41.721+00:00"
attributes:
event_types:
- single
- double
- hold
- brightness_move_to_level
- color_temperature_move
- brightness_step
- "on"
- "off"
event_type: "on"
icon: mdi:gesture-double-tap
friendly_name: DashButton - Wohnzimmer Action
context:
id: 01JHMHHMAS88SQB7YXYXM16N9T
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2025-01-15T08:33:41.721913+00:00"
context:
id: 01JHMHHMAS88SQB7YXYXM16N9T
parent_id: null
user_id: null
For that I build this trigger:
trigger: event
event_type: state_changed
event_data:
entity_id: event.dashbutton_wohnzimmer_action
new_state:
event_type: "double"
If I remove the "new_state" stuff it is triggered if my device do any action. But I only want to trigger on the "double" action.
But after adding the "new_state" part the automation is not triggered anymore.
T