Zigbee button - action is missing in HA

I have half a dozen Zigbee buttons in my house; they have been working fine up until about a week ago.

In Zigbee2MQTT, if I go to one of the devices/buttons, and go to the “exposes” tab, it shows the battery, the link quality, and the action (e.g. button_1_single pressed, etc).

If I test the buttons, I can see the “action” changing on the “Exposes” tab within Z2M.

However, the entire “action” sensor has gone missing from within Home Assistant. Instead, all I get is the battery and the link quality.

I have attached screenshots of the Z2M Exposes tab and the MQTT device page.

This previously worked fine - the “action” would be available as an entity in Home Assistant, which I then used as triggers for my various automations. Now the action entity is missing entirely.

Any suggestions on why this might be happening, and how to fix it please?

Thanks in advance.


(I realise the Linkquality is disabled in the Home Assistant device page; that’s fine. It’s the “action” that I care about, which isn’t even visible to be able to enable it.)

Ah, found this discussion, and [this specific post](Action entity missing for zigbee switches - Zigbee2MQTT - #20 by jdbrookes].

I then did the following:

  1. Open Zigbee2MQTT
  2. Settings
  3. Home Assistant integration
  4. Enabled “Home Assistant legacy action sensors”

…problem solved.

More like “problem brushed under the rug”.

That method will eventually be removed and you will have the issue all over again. Why not update to the new method now?

2 Likes

Could you please share new method that may exist if you have found any?
What I see is only ugly workarounds using mqtt events.
I support motivation to clean and neat code, kind of align with homeassistant, but what a regression for users.

1 Like
1 Like

Have a same issue about week ago with all my zigbee buttons, maybe after last update. Then I starting migration to Zigbee Home Automation (with SONOFF Zigbee 3.0 USB Dongle Plus V2), so workaround with zigbee2mqtt didn’t work for me. My automatons didn’t work with ZHA.
Is there a solution? Or I have to migrate all may zigbee stuff back from ZHA to Z2M?

I don’t know if this helps but I had a similar issue with a Sonoff smart button. Z2M just didn’t show it. I found a post on here that said to just go to the devices in MQTT integration, create an automation and choose device as action. I then had the options for single click and double click. This was way before the recent update so it was like this out of the box. So that doesn’t explain it working and stopping to work after the update unless the option mentioned above fixes it.

Z2M

MQTT integration

Yet, if I click on automations and use device as trigger. Worth a shot