Hello, great blueprint ! 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) }}
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.
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?
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 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.
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.
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
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.