I have a Third Reality Zigbee Button. I want it when pressed to turn on a Zigbee plug.
Both devices are listed in Z2M and both show up in mqtt.
I have created two different automations based on the Zigbee2MQTT guide.
I can see the messages when I listen to MQTT but when the button is pressed it does not turn on the device.
Here are the two automations.
Thank you for putting me on the right track.
I sort of got it figured out as shown below.
But when I restart HA it turns the light on.
I am not sure what to change so that when it restarts it is in the off mode.
I’m having an issue with the same device. I can add it to Z2M but it is only creating an update and battery entity, not an action entity. I can see via MQTT Explorer that it is indeed sending the message. I’ve tried reinterviewing, deleting/reading, etc. Thoughts/ideas?
If you are using the latest version of Zigbee2MQTT (version 2.X) it no longer creates action sensors.
Here are your choices.
You can re-enable the creation of action sensors in Zigbee2MQTT’s Settings → Home Assistant . This is not recommended because this feature will eventually be completely removed.
Use a Device Trigger. This is the recommended replacement for action sensors.
You can use event entities by enabling this option in Zigbee2MQTT’s Settings → Home Assistant. Then you can use a State Trigger to listen to an event entity. There’s a tutorial for it here. FWIW, this is what I chose to do.