That worked great, thanks!
Now time to try appdaemon, worse comes to worst and I have difficulties with it, I can install this package every few months to get an update on my sensor batteries then remove again
Hello, first off all, thanks NotoriousBDG for the work.
This battery thing is something very usefull into HA.
I tried to install but i didnāt succeed.
What is did:
Iām using Hassio
Install the official addon: Mosquitto broker
Start it.
Created a user for mqtt
Added it with āIntegrateā (i did not have to full in the username and password)
Added the battery_alert.yaml to the packages folder
Nothing else happened, i donāt have the sensors in HA now that wil show the battery level from my devices.
Did i do something wrong?
Is my mqtt not working as it should be?
Scrolled back in this topic but i did not find the answer.
Only you would be able to figure out which devices are which, but if I had to guess, you might have tried the Home Assistant iOS beta app on one or more devices. The iOS beta app uses the āBattery Levelā name by default unless you change it.
You can rename this easily from the UI. Go to Configuration -> Integrations -> Mobile App: Stefanoās iPhone (or whatever it might be called). Find the āsensor.battery_levelā and then rename it like this:
Thanks a lot for your help!!
Sorry for my late response but iām In vacancy!!
I have also other duplicated sensor how can I hide or delete the other sensor?
Itās seems that the script have make the battery sensor for all my devices so can read the Battery value from my sensor and the battery value from sensor created by the scriptā¦
Low Battery Levels
Pulsante Faro Parcheggio (87) ( battery from my sensor)
Pulsante Faro Parcheggio Battery (87) (Created by the script)
Iām on 0.98.1 and as far as i can tell, it still works as with previous versions (although my devices somehow are reporting the same level for moths, but that is both through this code as well as directly when viewing the devices/entities/attributes)ā¦
I use google_maps component and it reports my phone battery level.
And since 0.98 itās stuck at 52% (few days ago since I use 0.98 since first beta).
It looks like youāre right.
Sorry about that but I was sure I had checked the value in the device_tracker and it was correct.
Iāve updated my cookie and now it looks fine.
Iāll continue monitoring this.
Thanks @NotoriousBDG for this great package. A few people have asked about the issue with the Xiaomi Temp sensors and how they create 3 sensors per device (temp, pressure and humidity) which results in 3 battery entities. The advice has been to use the ābattery_sensor_creation_disabledā flag to remove the excess.
Trouble is for me I have a lot of these and some others that have 2 sensors so the inhibit list is way bigger that the list of actual batteries I want to monitor which kind of defeats the purpose of this script.
My question is - Is it possible to wildcard the list so it gets smaller. For example I would like to go from this (which is not my complete list!)
I was hoping to get this working too, but at the moment, I donāt believe this is compatible with LoveLace. At least, I canāt get the configuration screen either