You would do this in a custom action.
Blacky
Iām in a similar situation as @Ante though I only have about 1500 neighborhood devices (mostly weather stations that are very verbose about their battery reporting). Iāve used the advice of creating a custom group for the devices that are really mine. But, because of long habits as a software developer of āfile and forget itā, uh, I mean āDRYā, it pains me slightly to have to hard-code my list into this one BP and not somehow be able to use the list elsewhere, or to make use of a list created elsewhere. Iām about 30% likely to forget to add a new device to the list in this BP.
So, to the extent my one vote would matter, I wish for a way to either include or exclude battery entities in bulk. Either way would likely work for me. It could be any of the countless HA grouping mechanisms (which I donāt fully grok yet, but Iām sure there are reasons for having so many), or it could be regex or some other matching scheme. FWIW, I have all my devices in an HA area, so being able to use that existing bit of BP UI would be grand for me.
Well, thatās me asking for someone to do some work for free. Thanks for your work already, @Blacky
I havenāt done areas but I have done labels for excluded and custom group. I just havenāt released it yet but keep an eye out for it.
Blacky
Stay Charged, Stay Smart! Customize it your way and letās automate your battery maintenance!
New Feature
Labels ā You can now use labels in Excluded Battery Sensors and Battery Sensors - Custom Group. This was a highly requested feature, so I hope you like it and that it helps streamline your battery automations.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
How do you update blueprint? I donāt see anything prompting me for an update.
Spook gave me the following warning.
This automation references the following actions, which are unknown to Home Assistant:
todo.add_item
Follow @Sir_Goodenough link above ( Thanks @Sir_Goodenough ). You can also just use the import blueprint button at the top this post. Any way you choose you wont loose your current automationsā¦ it will just update the blueprint.
Blacky
This is know to the author of spook. I it just letting you know that the blueprint has an option to use the Local ToDo integration in the action buttons of this blueprint. This integration is developed and maintained by Home Assistant but is not included when you install it.
You can choose to ignore the warning or install the integration to remove the warning.
Blacky
Can you add ability to use notification groups? I have them configured in configuration.yaml for frigate blueprint and when i get a new device just have to update the names there and makes it nice and simple.
I imported latest version and tested as I did in previous version by turning detection to 90% and running and it no longer works.