Its Home Assistant or nothing, which is frustrating because HA is so overweight for what I need to do.
Its Home Assistant or nothing, which is frustrating because HA is so overweight for what I need to do.
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
It took me a minute to find, but the full MQTT structure is detailed here [1], and then individual devices detail what they expose on their page (e.g. this [2] is a random Sonoff temperature sensor). This means that the topic "zigbee2mqtt/sonoff-temp-example" will just have a simple JSON message with '{"humidity":46.93,"temperature":21.73, ...}'.
Hope this helps!
[0] https://www.zigbee2mqtt.io/supported-devices/
[1] https://www.zigbee2mqtt.io/guide/usage/mqtt_topics_and_messa...
Bit the bullet and setup home assistant and I've not looked back - I can even send post requests to web servers to do literally anything as part of it, it's great .