I'm trying to use a zigbee battery powered switch to run multiple actions with a choose block.
It's a sonoff SNZB-01 button which supports short, long and double press.
So I have these 3 triggers in a single automation:
- trigger: state
entity_id:
- event.bedroom_switch_action
attribute: event_type
to:
- long
id: long
- trigger: state
entity_id:
- event.bedroom_switch_action
attribute: event_type
to:
- single
id: single
- trigger: state
entity_id:
- event.bedroom_switch_action
attribute: event_type
to:
- double
id: double
I see that the device action happens for each type of button press but the automation does only run 'occasionally'.
Am I doing something wrong or what am I missing?