🪫 Low Battery Notifications & Actions

@chris400

You would do this in a custom action.

Blacky :grinning:

1 Like

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. :slight_smile: Thanks for your work already, @Blacky

1 Like

@wjcarpenter

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 :grinning:

1 Like

New Update 2.9

Stay Charged, Stay Smart! Customize it your way and let’s automate your battery maintenance! :battery::zap:

New Feature :new:

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 :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

3 Likes

How do you update blueprint? I don’t see anything prompting me for an update.

Using automation blueprints - Home Assistant.

Spook gave me the following warning.

This automation references the following actions, which are unknown to Home Assistant:

  • todo.add_item

@Belbivy

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 :grinning:

@Dr.proctor

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 :grinning:

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.

@Belbivy

I will put it on the list of suggestions. Thanks for your input.

Blacky :grinning:

@Belbivy

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 :grinning:

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.

@Belbivy

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 :grinning:

1 Like

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.

1 Like

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:

2 Likes

@tasomaniac

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 :grinning: