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.
Tested it here again and it is working.
Did you get it working?
If not could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
Blacky
It appears it works until i try to exclude using label. I have all mobile devices tagged as mobile and want to exclude those. It wonāt work with just label selected. I have to select the entity battery level on each device i want to exclude and it works.
I just tested it here using just labels as the excluded and it works.
Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
Blacky
Sorry for the late reply. I, of course, have seen this feature. But it does not make sense to add all of them here one by one. That would be a 100 items to exclude manually. Plus, to remember to add here each time I add a new device.
My idea was to reuse the āis_hiddenā feature of home assistant. If an entity is hidden by the user, the user most probably doesnāt want to be notified about it.
The exclude tag works, except on devices from Mobile App integration.
As far as i uderstand - this blueprint sends notification even if all the batteries are ok. Is there any option to get notifications only is any of the batteries is not ok? I think we need a checkbox near āall batteries are OKā notification test.
Thanx!
@avoronkov Itās here:
The blueprint has been updated to allow labels to be used in the excluded section. So all your āhiddenā batteries you can add label to them⦠then just use the label to exclude them all.
Blacky