#z2m alternative to events

1 messages · Page 1 of 1 (latest)

fathom ember
#

Hi,
How do I make it that this still triggers even when the button is pressed twice:

trigger: state
entity_id:
  - event.living_room_tap_switch_action
attribute: event_type
not_from:
  - unavailable
  - unknown
  - none
to: press_3

I don't like using device ID in case I swap out switches so I am trying to avoid it.

For example; I press my button and it shows state as press_3 and triggers my automation but when I press it again because the state in HA doesnt change it doesn't trigger my automation again.

What alternatives are there?

covert lantern
fathom ember
#

I do have the same minus the condition being a template I use the state instead but was wondering if there was anything else haha

fathom ember
#

any reason to use template over:

entity_id: event.home_switch_action
state: single
attribute: event_type``` @minor saddle ?
minor saddle
#

Not really I guess. But I already had this sequence for the action sensors, where the state would shortly be the event type, but then it would change back to none or something like that.

So I only changed the trigger when moving to the event entities, and could is the sequence as it was