đŸȘ« Low Battery Notifications & Actions

@Veee

As @Sir_Goodenough suggested. Please update your HA if you can and you will be good to go.

Blacky :smiley:

1 Like

Indeed I can confirm it solved the issue :grimacing:

1 Like

is there any way to have it add them individually instead of one big message? I want to mark them off one by one as I replace them.

@Robert_Shed

Currently it just reports them all. You can however edit the to-do item and remove the ones you have actioned.

Blacky :smiley:

Hi @Blacky, amazing blueprint, thank you!

I’ve been getting an interesting alert each time the blueprint runs lately, where {{sensors}} is blank, i.e., " {{sensors_names}} all have a low battery level and it is time to replace them" is just returning “all have a low battery level and it is time to replace them”, so some sensor seems to be getting picked up by the blueprint but isn’t getting included in the {{sensors_names}} variable. I’ve tried replacing {{sensor_names}} with {{all_sensors}} to see what happens and I get “Battery is unavailable! all have a low battery level and it is time to replace them”, so it seems to be something being detected as unavailable but the entity is not getting printed.

@tman98

Looks like your using custom actions. If so then have you included the quotes at the start and end? As shown below
 looks like you are but just checking

"{{sensors}} all have a low battery level and it is time to replace them"

Next when you use {{all_sensors}} your unavailable returned “battery” sensor. You have a sensor called battery in your HA and if you search for it you will find it. Next after that you have no names for the low so it look like you don’t have any. I think your custom action is not set up correctly. Have a look at point 6 or 7 in this FAQ, click here. This will be it and if you would like to test it adjust your Battery Low Warning Level to 100% then run the automation. You will see all your batteries and they will be above you original setting. You will have no batteries below your original setting so there is nothing to print.

If you are still having problems 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 :smiley:

Hi @Blacky thanks for the note. The “Battery is unavailable!” was a red herring for me as I didn’t think it actually was saying literally “[the battery with the name ‘Battery’] is unavailable!”. Low and behold one of my Sonos Move devices somehow created an entity only with the name “Battery” and not the name of the device (and I have since moved that Sonos device out of the house so it’s unavailable and therefore being reported correctly as being unavailable). User error there but that was a confusing message lol

What is interesting however is that the automation looks like it will trigger if a battery is unavailabel but the template names that don’t include unavailable names (like {{sensors}}) or {{sensors names}}) will just be blank in that case. I guess the expectation is that one would use both {{sensors}} and {{unavailable_sensors}} in the same message to avoid confusion

@tman98

Yeah I seen it a few times through this forum. I can be tricky but now you sorted that one out.

Maybe I didn’t explain myself correctly.

It is working but you have no sensors to report a low battery % so it not printing them because there are none to print. This is because your custom action is not correct.

In the link to the FAQ I provided above if you look at point 6 or 7 shows you how to set it up.

This is what is happening.

  1. The automation is triggered, that works because you get the notification.
  2. Because there are no sensors below your % you have just given it one option and that is to print the notification message. The FAQ shows you what to do but your could just use the easy notification and it will do it for you.

If you provide me your YAML I can fix it then it will make sense.

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

@Blacky No worries, my apologies I actually didn’t catch that in your prior message correctly. It makes complete sense that you need the if/then to not call the custom action. Thanks for (re)-pointing that out for me and again thanks for your great work on the automations and your fast responses.

@tman98

No problem at all, your welcome.

Glad you got it working now.

Enjoy

Blacky :smiley: