I have a Xiaomi Temperature and Humidity Sensor connected via Zigbee (deCONZ / ConBee II) and I can select the temperature, humidity and air pressure as an entity, but I would also like the battery level as an entity in my dashboard (I am using HA 0.99.3). I can see the battery level as a value underneath every entity, but I cannot select it as its own entity.
Is there a way to display the battery level as an entity?
A template sensor is one solution as Philip suggested, but you can also use this custom card to display the battery levels in your frontend without creating template sensors for each one.
Here’s how I have that card set up to show multiple battery levels:
Any idea what’s wrong? I think I am using the battery_level not correctly…
I don’t need any battery mdis, I just want to see the percentage of the battery level
To clarify, either what I suggested or @Philip_Embleton suggested will work, but what I provided will prevent errors from appearing in the log upon startup if the sensor isn’t ready yet.
I´ve just had those sensors like that for ages now but will try the above suggested. It´s a neater solution.
I´ve been cleaning up a load of my coding and automations (managed to get down from 16 automations for motion activated hallway lights down to just 2!).
Yeah, I’m glad I stumbled across the battery entity card because I was tired of making template sensors for each entity. Also, you can change the color of the icons by changing these values in battery-entity.js:
Hi there,
i ended up adding some aqara sensors to my HA.
The first multi sensor (temperature, pression and humidity) showd also battery level sensor.
I added a second one, exactly the same as the previous but in the entities i don’t have the sensor related to battery level.
I tried to disconnect the sensor from HA through conbee 2 but the same, it doesn’t show battery level.
Did u ever have this issue?
Any suggestion on how to gain also the battery level?
I had the same issue with most of my sensors. The solution was simple: Just wait
It took them up to 12 - 24 hours, and suddenly, the battery level appeared too.
You were right, 22 hours and magically appeared!!!
I had connecting issues because my sensor was far away in a bathroom.
I added an usb extension cable to put conbee in a better position and finally everything worked fine!