Aqara Mini Switch WXKG11LM/Zigbee2MQTT not showing action sensor for device even though it's reported in payload

I’ve paired the Aqara Mini Switch to Zigbee2MQTT and Home assistant isn’t showing a sensor for clicking the button. It’s shown as being exposed in Zigbee2MQTT and I see it in the payload and only when clicked. If the state goes to N/A it’s not reported in the payloads.

How do I get this to show up as a sensor?

So I figured this out. I had to enable legacy triggers in Zigbee2MQTT and it’s now showing the sensor properly.