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.
- id: "ad5509ee-7b91-42a3-ae26-5be1c74a27cf"
alias: "Black Light ON"
trigger:
platform: mqtt
topic: 'zigbee2mqtt/Black Light Button'
condition:
condition: template
value_template: '{{ "single" == trigger.payload_json.click }}'
action:
entity_id: switch.black_light_plug
service: switch.toggle
- id: "d5bd322e-344c-4922-ba5c-c82c84c50342"
alias: Respond to button click
trigger:
platform: state
entity_id: sensor.black_light_button_action
to: 'single
action:
entity_id: switch.black_light_plug
service: switch.toggle
mode: single
Any help is appreciated