Hacker News new | ask | show | jobs
by vineyardmike 855 days ago
I’m happy to tell you that you are fundamentally misunderstanding. This is good because reality is even simpler.

Z2M takes ordinary Zigbee devices, and generates MQTT messages from them. The devices are oblivious to this, and have no idea what MQTT is. They just act like Zigbee devices.

Z2M just publishes messages on a dedicated topic per device, with all the relevant information in that message. Generally for battery powered devices like temperature sensors, you won’t “query” their state by asking the device - because they sleep with the radio off. Instead you just wait for an update (and store it as needed).

Docs for your device : https://www.zigbee2mqtt.io/devices/SNZB-02.html