How do I filter out the extra “action”: “” on a Zigbee button in Home Assistant? I’m looking for a general solution since I have several Aqara and Ikea buttons that do this. The buttons show up properly in Zigbee2MQTT and MQTT Explorer, but the actual button press is overridden by the trailing empty action “”.
What are you trying to do exactly? If you have an automation, just look for the value you want. No need to ignore the “”
The default Helper card in Overview does not work. It sees the button press but then immediately gets the empty action so it always just shows the last action, (empty value). I want to filter out these extra actions at the system level so I don’t have to mess with them in every automation or card. I don’t want to have to modify the code every time I add a Zigbee button.
That doesn’t really answer my question. Also, please reply to me, not the thread.
The sensor itself is a momentary sensor. It’s only meant for automations, not meant for display in the UI. If you want an entity to display in the frontend that shows a persistent press and with a timestamp, enable the event entity in Z2M.
In regards to automation, can you please post an example that you have to “mess with them in every automation”. I have a feeling you’re being your own worse enemy here because most people find these sensor entities to be easier to work in automations than the persistent state event entities.
@dennyfmn Please reply in this thread and reply to the comment not the thread, see the picture above. Do not DM. Thank you.
Sorry I’m new at this.
How do I “enable the event entity in Z2M”? I can’t see how to do this.
I don’ have an automation example to show at this time. Thanks for your patience, I’m trying to learn about this.
In Zigbee2MQTT, click the gear icon then select Settings → Home Assistant integration.