Before starting
You need an SNZB-02D, a compatible coordinator, a running Zigbee2MQTT instance and an MQTT broker. ZBDongle-P needs host software; USB power alone is insufficient. Check the coordinator firmware and the serial adapter configuration.
We have tested simulated messages, not this physical setup, so the field names below come from the official device page rather than from a capture.
The exposes, and which ones you can write
| Attribute | Direction | Unit or values | Note |
|---|---|---|---|
| temperature | read | °C | Measurement, not configurable |
| humidity | read | % | Relative humidity |
| battery | read | % | Remaining battery |
| temperature_units | read and write | celsius, fahrenheit | Changes the on-device display |
| temperature_calibration | read and write | offset | Applied to the reported value |
| humidity_calibration | read and write | offset | Applied to the reported value |
| comfort_temperature_min and max | read and write | -10 to 60 °C | Drives the cold and hot icons |
| comfort_humidity_min and max | read and write | 0 to 100 % | Drives the dry and humid icons |
The comfort thresholds are display configuration, not automation logic. Below the minimum the device shows a cold symbol, above the maximum a hot one; an automation that needs a real comfort rule should compute it from the temperature and humidity values.
Wake the device before writing
Every writable attribute on the official page carries the same note: press the button on the back to wake the device before changing the value. A sleeping end device does not hear the write, and the bridge reports the command as sent while nothing changes.
The reliable sequence is: press the button, wait for a fresh report, publish the set command, then read the value back. If the read-back is unchanged, the device was asleep and the write was lost.
# Wake the device first, then read
mosquitto_pub -t 'zigbee2mqtt/room_climate/get' -m '{"temperature":""}'
# Change one setting at a time
mosquitto_pub -t 'zigbee2mqtt/room_climate/set' -m '{"temperature_units":"celsius"}'
Pair and name the sensor
Enable joining briefly in Zigbee2MQTT and follow its SNZB-02D pairing instructions. Name the sensor room_climate, or change the kit topic to match your actual friendly name. Disable joining afterwards.
Do not reset a sensor that is already used by another installation without arranging its migration first. A reset removes it from that network, and the other installation loses its history.
Point the local kit at it
Start with the local workbench tutorial. Copy the example configuration, set the mode to live and keep only the room-climate device. Configure the broker host, port and credentials. The kit subscribes to the device, availability and bridge-state topics; it does not send configuration writes.
cp config.example.json config.local.json
# Edit mode, mqtt and devices in config.local.json.
export IOT_MQTT_USERNAME='YOUR_LOCAL_BROKER_USER'
# Set IOT_MQTT_PASSWORD privately in your shell environment.
.venv/bin/python service.py --config config.local.json
Expected device messages look like this; these numbers are illustrative, not measured values.
{"temperature":23.5,"humidity":45,"battery":90}
Freshness for a sleeping sensor
Battery devices are passive on the Zigbee network: they cannot be pinged, so the bridge infers liveness from silence. The documented default for a passive device is 1500 minutes, about 25 hours, and the timeout persists across bridge restarts.
That number is not a reporting interval. It says how long the bridge waits before calling the device offline, and it should be set longer than the sensor's slowest expected report.
On the consumer side, the kit's example freshness threshold is 25 hours. Two rules keep it honest:
- A restored broker snapshot carries the retained value with an unknown observation time; it is not a fresh reading.
- An unchanged temperature for an hour is normal. Only the availability topic can distinguish silence from a dead device.
Verify and recover
Confirm degrees Celsius, humidity percentage and battery percentage, then wait for a live report rather than trusting the first retained message.
If there is no data, work outward:
| Symptom | Check |
|---|---|
| No device on the bridge | Pairing, permit-join window, distance to a router |
| Device present, no messages | Coordinator firmware, serial adapter, bridge log |
| Messages on the topic, kit silent | Topic name, broker credentials, subscription filter |
| Value never changes | Sensor reporting interval, not the bridge |
| Write has no effect | Device was asleep; press the button and repeat |
Restarting the kit cannot fix failed Zigbee pairing, and re-pairing cannot fix a broker credential. Record your actual firmware and platform versions before reporting success.