ok I will. What could be the reason your package only sees my second remote and creates a battery sensor for only that, leaving out the first (which is unnumbered)
just to be clear, the first 2 entries here are the 2 devices irl, the bottom _battery is created by the package , obviously based on the second device.
I looked at doing what @firstof9 suggested, but there isnât an easy way to determine what created the battery sensor. Since this is an edge case, I decided to implement it in a different way. To prevent creating a battery sensor from an entity, you can now use customize to set battery_sensor_creation_disabled to true. Youâll need to clear the retained MQTT topics to delete the duplicate sensor.
Either sensor.tradfri_remote_control has âbatteryâ in its friendly name or there hasnât been a state change yet to trigger the creation of the battery sensor.
This package and icon_templates are mutually exclusive. Either you manually create templates for every battery device or you let this package automatically create them all for you without the fancy icon. The primary goal for this package is to avoid creating templates.
See Template Sensor with Dynamic Battery Icon - #5 by NotoriousBDG if you want to create all the battery templates with dynamic icons. Youâll need to disable the automations in this package that create sensors from attributes if you go that route.
Sorry for this dumb question, what is the significance of time trigger? would it only create a notification at the above said time? so if my battery goes down the 40% mark at 16:00, would i come to know at 18:00 (the next time trigger?
Yes, it only sends slack notifications at 10:00 and 18:00. A battery that drops below 40 at 16:00 would cause a notification at 18:00 and every day at 10:00 and 18:00 until that battery level is above 40.
Excuse me, Iâm a newbieâŚ
I installed your package in my Hassio following your instructions⌠but in the dashboard it do not show me any âBattery Alertâ section⌠what is wrong?
I have to add group battery_alert manually in configuration.yaml to see it⌠is this correct?
Is it correct, that the package should create new sensors for the battery levels? Because there are no new sensors available on the state page
There are no alerts shown for any sensor with a battery_level attribute unless I put battery in the friendly name of the sensor. But then the script assumes that the main value of the sensor (e.g the temperature) is the battery level, right? So is the issue, that no new sensors are created and therefore no sensors with battery in the name are found? How can I fix that?
Iâve been using this for a while and at the weekend I had 2 Fibaro sensors go from 100% to not working, batteryâs were totally flat. Plus I have another that always say 0% even with a new battery.
I just find their reporting far too flaky to be of any use for battery levels.
Is the battery_alert.yaml file stored in the folder named packages?
It will create a new sensor for entities that have attributes named battery_level, battery, and battery numeric. If the entity has battery in itâs name, it will not create a new sensor from it.
Correct, the alert will be for the battery sensor which are automatically created for entities that have battery attributes.
It might be that you donât have mqtt discovery configured (MQTT - Home Assistant)?
If you want to ignore those, you can use customize to either disable alert on the battery sensor or just disable creating the sensor.
Is there any way to store the min & max alert threshold value thats set from the input_number persistent in mqtt, to not have the value reset to initial value after reboot?
With the release of Home Assistant 0.66, itâs now possible to set the icon for a sensor via MQTT Discovery. Iâve updated the package so it sets the icon to a battery icon. I was hoping to make the icon change based on battery level, but Home Assistant only sets the icon when the sensor is initially discovered and on startup, which doesnât make that feasible yet.
Once you update the package on your system, the icons wonât change immediately. There needs to be a state change or poll for each device first, then Home Assistant will need to be restarted. After thatâs done you should now have battery icons.