#HA-Voice-PE Button Strange Behavior

1 messages · Page 1 of 1 (latest)

sick sun
#

I'm attempting to create a simple automation to toggle the lights in a room with the hardware button on the home assistant Voice PE. I started off using a trigger on the button entity with the attribute and to field set. It does trigger but only when the value changes. E.g. from a long press to a double press. If you do two double presses back to back it doesn't trigger the automation even though home assistant is aware of a new event.

The solution is to not use any filters on the trigger event and to use an and-if option to filter the event to only be the double press. In the attached photo you can see that.

I'm not super familiar with home assistants entities in automations, is this normal behavior? This feels like a bug to me.

glossy quail
#

That's how state trigger works, yes.

sick sun
#

So the logic of the filters for that trigger only looks for when the value changes than. Interesting. Thanks.

glossy quail
#

Yeah. It is slightly less intuitive when paired with how you would typically use a button or event entity, but it makes sense when considering that state trigger is generic for any type of entity.

sick sun
#

Where it got me was, with a filter it only triggers on change but with no filter it triggers on every event. Same conditional with different behavior based solely on an optional filter.

#

If that's how it has worked than it should probably stay that way.

#

Maybe some wording could be changed to make it more obvious 🤷 .