Zigbee2mqtt+Xiaomi Switch - I need help :(

Hello,

It took me 4 days to make the new Itead Zigbee 3.0 usb dongle to work and found it it uses different pattern than the Xiaomi gateway and can't use my old nodes.
I'm dumb and can't find a way to make a simple switch work and can't find a working flow online.

Can someone share a simple Zigbee2mqtt Xiaomi switch flow?
This is the payload in Zigbee2Mqtt log:

MQTT publish: topic 'zigbee2mqtt/0x00158d0001bf57fc/action', payload 'single'

Thank you!

Hi,
If I understand correct you have installed Zigbee2mqtt firmware on an Itead Zigbee dongle?

If you are using Zigbee2mqtt then you can node-red-contrib-zigbee2mqtt for easy implementation.

Or you can make your own with this simple mqtt example.
The sample is not specific for Xiaomi switch, but it should not be to difficult to adapt.

[{"id":"cb09fd.432436","type":"mqtt out","z":"6ebb4e1a.90e7","name":"","topic":"zigbee2mqtt/Salontafel/set","qos":"","retain":"","broker":"e992f40a.2e8898","x":1020,"y":1420,"wires":[]},{"id":"250e1812.045c2","type":"inject","z":"6ebb4e1a.90e7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Device\":\"MySwitch\",\"send\":{\"Power\":\"On\"}}","payloadType":"json","x":700,"y":1420,"wires":[["cb09fd.432436"]]},{"id":"e992f40a.2e8898","type":"mqtt-broker","name":"","broker":"192.168.1.127","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Yes, you understand correctly.
I have Home Assistant and Zigbee2mqtt with this Xiaomi Switch

I already have the entities in NodeRed due to Home Assistant, the problem is I have no idea how to make this switch work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.