#Automation from identical events failed to trigger

1 messages · Page 1 of 1 (latest)

white fox
#

Automation:
`trigger: state
entity_id:

  • event.washer_notification
    to: washing_is_complete
    attribute: event_type`

Event:
event_types: error_during_washing, washing_is_complete event_type: washing_is_complete friendly_name: Washer Notification

As shown in screenshot, the event is basically the same every time just with different timestamp. I suspect that's what caused the automation to fail to trigger. Is there any way I can have the automation fire with event like this?

nocturne gazelle
#

That's just how event entities work. Their states state is a timestamp of the last time it fired

white fox
#

oh ok. but the automation didn't fire

nocturne gazelle
#

Actually, if the attribute didn't change value, then it won't fire

#

If you want to do something every time the event fires with that event type, remove the to: and attribute: lines and use a condition to check the event type

white fox
#

Should I be using the event trigger instead? I just found it
trigger: event event_type: washing_is_complete

nocturne gazelle
#

You can use that too