Hey everyone, I’m really excited to share my recent journey into the world of Zigbee and MQTT with my Xiaomi Mijia body sensor. I’ve been using WiFi and Bluetooth for all my devices, but I decided to make the switch to Zigbee for better reliability and integration with my Home Assistant setup. I ordered a CC2531 starter kit from AliExpress and followed the instructions on zigbee2mqtt.io to flash the firmware. It was a bit nerve-wracking, but everything went smoothly!
The Xiaomi Mijia body sensor was a breeze to connect. I just reset it and waited for it to be detected by my MQTT broker. The sensor started sending data immediately, and I could see the payload in my logs, including battery level, occupancy status, and voltage. However, I noticed that while the occupancy sensor showed up in Home Assistant, the battery and voltage entities were missing. After some research, I realized I needed to adjust my MQTT discovery settings to ensure all entities are properly exposed. I’ll be diving deeper into this to make sure I get all the sensor data showing up correctly.
If anyone has tips or tricks for getting all entities to appear in Home Assistant, I’d love to hear them! I’m also curious if others have similar experiences or solutions. It’s been a great learning experience so far, and I’m excited to continue exploring the possibilities with Zigbee2MQTT and my Xiaomi sensors. Happy tinkering everyone! ![]()