Forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Last active
March 26, 2024 14:09
-
-
Save kurohouou/880fdbffc697ef872cf8a793dc3fb72b to your computer and use it in GitHub Desktop.
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
Ah that makes sense, thanks for that clarification :) I'll try out your modifications soon
added an option to list unavailable or not. here my gist https://gist.github.com/andyblac/35b4164355dbef4f998f358353278236 based on your code, hope you don't mind
added an option to list unavailable or not. here my gist https://gist.github.com/andyblac/35b4164355dbef4f998f358353278236 based on your code, hope you don't mind
![]()
Logger: homeassistant.helpers.template
Source: helpers/template.py:2209
First occurred: 18:20:15 (4 occurrences)
Last logged: 18:22:47
Template variable warning: 'sensors' is undefined when rendering '{{sensors}}'
you got any idea how I screw this up?
Hi,
just fixed this issue in my gist here, it stops the error in logs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have 7 Aqara Roller Shade motors, but these have a battery level issue, where once they get below 55% they fail to operate correctly and Aqara refuses to fix the issue. So in my case it was easier to "include" just these sensors and have a automation to warning me once they reach 60%, rather than "exclude" all the other battery sensors (over 50 of them). So now i have 2 automation one with only these included and 60%, and another with these excluded with 20%.
Hope that make sense.