Push-button on Zigbee2mqtt and "action"

I have paired a push-button (Wireless mini switch (WXKG11LM)
by Aqara) to Zigbee2mqtt and the push-button is visible on the dashboard. When pressing the push-button, I can see under “last seen” an activity (single or double).

But when going under settings - devices and services - MQTT and choosing my push-button, I don’t see any entity called “action” (I see entities battery, temperature, voltage). I guess it is related to a setting somewhere but I don’t find the way to see the entity “Action”.
Anyone who has an idea how to do to be able to see the entity “Action”?

The next step is to be able to use my push-button on Node-Red, I would like to read the entity “action” to react and activate something. But same there, I don’t see the entity “action” under node-red. I guess it is the same problem as above. I can add that I have lots of devices on Zigbee2mqtt where I can see all entities (termometers, motion sensors, etc), but no push-buttons.
Anyone who has an idea how to do to be able to see the entity “Action” in node-red?

Thanks!

Action entities were disabled by default around 15 months ago when Z2M 2.0 was released.

Look up Z2M 2.0 breaking changes to see what your options are (including restoring action entities)

Thank’s for your answer @ShadowFist . I have checked the Z2M 2.0 breaking changes and would like to avoid the setting “legacy_action_sensor: true” as it seems to disapear in the future. And unfortunately I am not sure that I understand how I can get the “action” into Node-Red. Any idea about that?

I know next to nothing about Node-Red, but you should be able to have it use the mqtt messages, since action is still published as part of the message

Ok, thank’s. Maybe a stupid question, but how do I use the mqtt messages, seems to be complicated. Do you have an example that I could get? :slight_smile:

Sorry mate, like I said earlier, I don’t know how to use Node-Red so can’t tell you how to have it trigger off a specific part of an MQTT message.

Hopefully someone with more experience will show up and help you along.

I found a good video that shows how to do this: