Integrating Xiaomi Temperature Sensor with Zigbee Binding

Hello everyone, I wanted to share my experience with integrating a Xiaomi (Aqara) Temperature & Humidity Sensor using the Zigbee binding in openHAB. While the process seemed straightforward at first, I encountered a few challenges that I thought might be worth documenting in case others run into similar issues.

First, I followed the standard procedure: installing the Zigbee binding, setting up the Nortek HUSBZB-1 coordinator, and initiating the discovery process. After some trial and error with the sensor’s inclusion button, it was finally detected. However, instead of appearing as lumi.sensor_ht, which is what I expected based on the device specifications, it was registered as lumi.sens. This discrepancy led to the sensor not being recognized correctly, and as a result, it didn’t display any temperature or humidity readings.

Looking at the logs, I noticed that the sensor initially reported lumi.sensor_ht but later changed to lumi.sens. This was puzzling, and I spent quite some time researching why this might be happening. I reached out to the community and found that others had encountered similar issues, often related to how the device’s model ID is handled during the pairing process.

After some experimentation, I discovered that manually setting the device’s model ID in the Zigbee binding configuration to lumi.sensor_ht resolved the issue. This allowed openHAB to correctly identify the sensor and display the appropriate channels for temperature and humidity. It was a bit of a workaround, but it got everything working smoothly.

I wanted to share this experience because it highlights the importance of checking device model IDs and being prepared to tweak configurations if things don’t go as expected. It’s also a testament to the flexibility of openHAB and the wealth of knowledge available in the community. If anyone else runs into similar issues, feel free to reach out—I’m happy to help troubleshoot!

Happy automating!