1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update zigbee2mqtt

This commit is contained in:
kevin 2024-05-28 20:59:59 +08:00
parent 264618a8da
commit 16c8e752d3

View File

@ -71,5 +71,16 @@ $ mosquitto_sub -h broker.hivemq.com -u username -P password -t 'zigbee2mqtt/+'
> :warning: PLEASE DO NOT USE <broker.hivemq.com> FOR PRODUCTION! > :warning: PLEASE DO NOT USE <broker.hivemq.com> FOR PRODUCTION!
[1]: https://github.com/Koenkk/zigbee2mqtt ## Pro Tip for Tasmota
[2]: https://zigbee.blakadder.com/Sonoff_ZBDongle-P.html
To bind button to switch [read more][3]
```
Rule1
ON mqtt#connected DO Subscribe btn, zigbee2mqtt/0xaaaaaaaaaaaaaaaa, action ENDON
ON Event#btn=single DO Publish zigbee2mqtt/0xbbbbbbbbbbbbbbbb/set {"state":"TOGGLE"} ENDON
```
[1]: <https://github.com/Koenkk/zigbee2mqtt>
[2]: <https://zigbee.blakadder.com/Sonoff_ZBDongle-P.html>
[3]: <https://tasmota.github.io/docs/MQTT/#subscribe>