šŸŖ« Low Battery Notifications & Actions

can you allow hidden entities to be ignored please, see below screenshots I am using Battery Notes (GitHub - andrew-codechimp/HA-Battery-Notes: A Home Assistant integration to provide battery notes of devices) which allows you to track when batteries where changed etc, but it uses it own Battery+ entity, and allow you to hide the original entity.

But when using this integration your blueprint finds both battery entities and show them both in the messages.


@andyblac

Thanks for your suggestion, I will put it on the list.

Blacky :smiley:

1 Like

Great blueprint! Didnā€™t find if it is possible to add sensor location to the low battery message

@romka1977

Welcome to the community.

You would have to do this in the custom actions. I will put it on the list of feature requests.

Blacky :smiley:

1 Like

Hello, great blueprint ! :slight_smile: I wonder if itā€™s possible to optionally integrate z2m ā€œnot ā€˜last seenā€™ since e.g. 24 hoursā€ feature how itā€™s reported here:

{% set result = namespace(sensors=[]) %}
{% for state in states.sensor | rejectattr('attributes.device_class', 'undefined') | selectattr('attributes.device_class', '==', 'timestamp') %}
    {% if 'last_seen' in state.entity_id and (states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((24 | int) * 60 * 60))) %}
        {% set result.sensors = result.sensors + [state.name | regex_replace(find=' last seen', replace='') ~ ' (' ~ relative_time(strptime(states(state.entity_id), '%Y-%m-%dT%H:%M:%S%z', 'unavailable')) ~ ')'] %}
    {% endif %}
{% endfor %}
{{ result.sensors | join('\n') | truncate(254, True) }}

@beatclub

Welcome to the community.

Thanks for your suggestion, I will put it on the list.

Blacky :smiley:

@Blacky Is there a way, that the label fuction will be include? Currently it exists but doesnt work

@stephanschleichstr13

I did this so it would be easy to select your entities. I donā€™t use labels but you could probably select it then expand it down to entities. I understand that it then defeats the propose of labels.

Could I ask why you would like labels?

Blacky :smiley:

Its more easy & fast to group entities without coding skills :slight_smile:

Hello,
Your blueprint is very good. I especially like the variety of settings which are easy to use.
I have a question or rather a request. I would like to create a battery badge and I wonder if I could use the blueprint as a basis. Could you help me with this?
Thank you in advance!

hi,
as i currently do not got any low batteries, is it possible to configure the automatic easy notify to not send a notification if there are now sensors to be reported?

Or did i just miss this?

PS: I do see the notification icon (the low battery symbol) on my phone but at the web ui at ha i get an big X shown, caching issue?

cheers,
Horfic

@Alexius30

Welcome to the community.

I not an expert on badges, Maybe create a new topic and ask if someone can help you as there are heaps of community willing to help.

Blacky :smiley:

@horfic

Hi Horfic, welcome to the community.

Yes depending on if your notifying a device or using the UI but it is the same. You just donā€™t use the + Okay Confirmation Message this way you only receive a notification if there are low batteries to report. See the selection below to use.

This will be a browser setting blocking the emoji being downloaded.

Blacky :smiley:

thanks for answers and the info in regards of the ok message.

in regards of the emoticon, seems to me more its a not supported char or not correct encoding for chrome

This is a great blueprint. Iā€™d love to have a way to include/exclude batteries based on the integration. For example, I donā€™t want to receive notifications about low batteries on mobile devices.

1 Like

@horfic :smiley:

I donā€™t use Chrome but maybe search google ā€œemoji not loading in chrome browserā€ and that my help you resolve your problem.

Blacky :smiley:

@jchampagne

Thanks for you suggestion I will add it to the list.

Currently you will need to exclude all your mobile devices in Battery Settings and in Excluded Battery Sensors (Optional) Once they are listed there you will not be notified of those devices.

Blacky :smiley:

1 Like

i just checked, unicode is working, but chrome and edge as an example do not support low battery unicode.

1 Like

Your blueprint is not working when trying to import it through the iOS app.

A little extract:


Invalid blueprint: extra keys not allowed @ data['blueprint']['input']['action_buttons_settings']['collapsed']. Got True extra keys not allowed @ data['blueprint']['input']['action_buttons_settings']['icon']. Got 'mdi:gesture-tap-button' extra keys not allowed @ data['blueprint']['input']['action_buttons_settings']['input'].
(ā€¦)

Donā€™t know if Iā€™m the only one and why this is happening :sweat_smile:

Iā€™m sure Blacky will answer, but you may need to use a newer version of HA.
Looks to me like the blueprint is using features newer than your version of HA has available.

1 Like