Hello everyone, I’ve been having some trouble with my Xiaomi Aqara door and motion sensors. While they work perfectly in terms of detecting movement and status, I noticed that the battery level isn’t showing up in my Home Assistant setup. This was a bit frustrating because I rely on these sensors for my daily routine and would like to keep track of their battery health to avoid unexpected malfunctions.
After some research, I came across a GitHub repository called zigpy/zha-device-handlers. It seemed like this library could help retrieve the battery data I was missing. Since I’m running Home Assistant on Ubuntu with Docker, I decided to give it a try. I followed the instructions to install the package using pip, but I was a bit confused about the next steps, especially since I’m more familiar with Windows than Linux.
I reached out to some community members for guidance, and they suggested that after installing the package, I might need to apply a specific quirk to my devices. I found a helpful example online that showed how to configure this, and I managed to apply it to my sensors. To my delight, the battery levels started appearing in my Home Assistant dashboard! It was a bit of a learning curve, but it paid off.
I thought I’d share my experience in case anyone else is facing the same issue. If you’re using Xiaomi Aqara devices with ZHA integration and aren’t seeing battery levels, installing the zigpy library and applying the appropriate quirk might just be the solution you’re looking for. Happy tinkering! ![]()