đŸȘ« Low Battery Notifications & Actions

@ZorK766

Welcome to the community.

When your sensor becomes ‘Unknown’ is it when;

  1. Restart of HA and the sensor is yet to provide data so it is listed as ‘Unknown’?
  2. When the battery is flat it always stays ‘Unknown’ and never transition to unavailable? It should do this.
  3. Something else you can provide some feedback of when it becomes ‘Unknown’.
  4. What type of device (e.g., Zigbee, Z-Wave, or Wi-Fi, etc)

Blacky :smiley:

Hi, this is right:

2: One of my Xiaomi LYWSD03MMC Bluetooth thermometer Hygrometer flashed to send values by the Passive BLE monitor had his battery totaly flat.

I use one of them in every room to control my heaters by generic thermostat.
This why i needed a smart integration like yours.

I know if i put a new (or recharged LIR2032) battery in it and I check batteries state every day, i shouldn’t have issues in the future, but i was wondering if there was a way to report “Unknow” batteries states with your blueprint as well.
Just in case


Maybe IÂŽm too stupid because of being at the beginning of using home assistant, but how can I get this notification on my dashboard instead of sidebar ?
With auto-entities IÂŽm only getting the status of the automation.

Thanks in advance,
Thorsten

Maybe I’m stupid too :smiling_face: but is it possible to add the battery type from the battery notes integration to the notification and todo list, so I can immediately
can order the correct batteries.
Thanks in advance for any help

@ZorK766

I will put it on the list to do. Thanks for your input.

Blacky :smiley:

1 Like

@Thor_Sten

I just use the UI notification on the sidebar.

Blacky :smiley:

@Alwin_Hummels

I just do this as shown in the FAQ.

Blacky :smiley:

Thanx for the quick reply, as I understand this is a manual process I can’t just simple fetch the data from the battery notes integration or do i read it wrong?

But when running with fully kiosk and without sidebar on a tablet the user cannot see the notification. Is it possible for you to implementate an useful entity for dashboard ?

@Alwin_Hummels

Sorry I don’t use that integration as I try to just keep things simple. I just keep a stock of batteries as AA, AAA or CR2032 so when I get the notification I just add to the to do list and then just know what battery I need or just replace them when I get notified. You could always reference the battery using the integration.

Blacky :smiley:

1 Like

@Thor_Sten

Maybe this is a WTH topic as it is running this month.

WTH - Dynamic Notification In Dashboard

Vote here WTH - Dynamic Notification In Dashboard

Blacky :smiley:

New Update 2.8

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

New Feature :new:

  • Unknown Sensors - It will now detect battery sensors that report as Unknown.

Maintenance :toolbox:

  • Clean up some code.

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:

4 Likes

I have it set up in an automation for low batteries where it sends a notification to the phone and does a tts message over a speaker. When all batteries are ok it works fine for the phone but how would i go about doing the same for the tts?

How can i disable batteries are okay message? I only want to bss notified when batteries are low?

@RogerB1

You will have to make sure your condition is correct in your TTS. Have a look at point 6 or 7 in this FAQ click here as this can help you through it.

Blacky :smiley:

@johnsnow

Depending on if your notifying a device (mobile phone) or notification in the UI. Just select the one your after
 see below.

Blacky :smiley:

Does this look right
EDIT: works flawlessly. THANKYOU

if:
  - condition: template
    value_template: "{{ sensors == '' }}"
then:
  - action: tts.cloud_say
    metadata: {}
    data:
      cache: false
      language: en-IE
      entity_id: >-
        media_player.foyer_speaker,media_player.master_bedroom,media_player.arc_ultra
      message: I am not seeing any low Batteries. You are all clear
if:
  - condition: template
    value_template: "{{ not sensors == '' }}"
then:
  - action: tts.cloud_say
    metadata: {}
    data:
      cache: false
      language: en-IE
      entity_id: >-
        media_player.foyer_speaker,media_player.master_bedroom,media_player.arc_ultra
      message: I have Detected some low batteries. Here they are. {{sensors}}
1 Like

I tried with "Use The Time Trigger " disabled but “Device Notification Options” enabled and never got any notification when the battery dropped below 20% on my switchbot lock or ring keypad.

I tried with "Use The Time Trigger " enabled and “Device Notification Options” enabled, I get notifications daily since my ring keypad is below 20% but if everything is above 20% it still sends a notification daily with “YES! All batteries are okay :)”

I do not want any notifications in the UI and only want a notification on my phone when batteries are below 20%, so how can i stop “YES! All batteries are okay :)” notification?

EDIT:

I believe my mistake was using “Enable UI Notification + Okay Confirmation Message” instead of “Enable Device Notification”

1 Like

thanks for the great blueprint. Much appreciated.

is there anyway of setting a due date when adding to the todo list?

that would be a big improvment for me :slight_smile:

thanks
Philipp

@phischi

When you add it to a to-do list and you have chosen Add To-Do List Action Buttons + Confirmation Message when you receive the confirmation message if you click on it, it will take you directly to your selected To-Do list and you will see the new task. You then just click on the task and add your due date.

Blacky :smiley: