Thanks for your kind words, you might want to check out my other blueprints. All links to them are at the first post.
Enjoy and have fun!
Blacky
Thanks for your kind words, you might want to check out my other blueprints. All links to them are at the first post.
Enjoy and have fun!
Blacky
Iām so appreciative of your work and generosity, is there somewhere I can make a small donation to you?
Just imported and set-up. Havenāt had a chance to run it yet; however, Spook is throwing an error.
Yes Spook will do this and we are aware of it.
What Spook is doing is looking for the TODO integration. The TODO integration is a Home Assistant integration supported and designed by HA.
In the blueprint when it sends a notification you can have an option to add your low batteries to a TODO task this way you can follow up replacing the batteries and crossing it off your TODO task.
To remove this warning from Spook all you need to do is install the integration or you can just ignore the warning.
To add the TODO integration go to Settings > Device & Services > click add integration and search for Local To-Do and follow the steps.
Blacky
Stay Charged, Stay Smart! Customize it your way and letās automate your battery maintenance!
Maintenance
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
saw this discussion in a other topic aswell. This was fixed with a template.
https://community.home-assistant.io/t/advanced-heating-control/469873/1836
Thanks for the info.
Blacky
The blueprint is wonderful and powerful; I am quite new to HA and this is the first blueprint that I can import. All is ok and the blueprint works (>Automation>RUN Automation>notification is ok). Then I created a Low Battery Button (as per the FAQ) and created a Button card including the entity Low Battery Button. When I click on it nothing happensā¦ where am I wrongā¦
Just checking, is it still not possible to use wildcards?
Hi, congratulations on the project, Iām using custom actions to receive notifications on Telegram, it only reports sensors with battery below the threshold but not unavailable sensors. on UI Notification are reported regularly. this yaml custom actions
if:
- condition: template
value_template: "{{ not all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
title: šŖ«Batterie Scariche
message: |-
ā¢ {{all_sensors|replace(', ', '
ā¢ ')}}
else:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
enabled: true
Welcome to the community and thanks for your kind words.
I cant see what you have selected but maybe you need to select the option to use it
If this is not it then 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
No still not possible.
Blacky
Thanks for kind wordsā¦ try the code below.
if:
- condition: template
value_template: "{{ all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
else:
- action: notify.telegram
metadata: {}
data:
title: šŖ«Batterie Scariche
message: |-
ā¢ {{all_sensors|replace(', ', '
ā¢ ')}}
Blacky
@Blacky
thanks for your quick response.
I had already tried without the not, tried again with the code you sent but nothing. even the sensors with battery below the set threshold do not arrive. if I send to Google ad it works regularly. Even with simple:
action: notify.telegram
data:
message: ...Battery "{{all_sensors}}".
or
action: notify.telegram
data:
title: Low Battery Notification
message: "{{all_sensors}}"
I only receive a messageā¦ Battery without the names of the sensors.
I believe that ā{{all_sensors}}ā is not valued in the telegram in other automations I receive values āāof a single sensor in the telegram with
message: >-
Alert Temperatura Acqua {{
states.sensor.sonoff_acquario_ds18b20_temperature.state }} CĀ°
Maybe try it without the bullet point.
if:
- condition: template
value_template: "{{ all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
else:
- action: notify.telegram
metadata: {}
data:
title: šŖ«Batterie Scariche
message: |-
{{all_sensors|replace(', ', '
')}}
or the emoji
if:
- condition: template
value_template: "{{ all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
else:
- action: notify.telegram
metadata: {}
data:
title: Batterie Scariche
message: |-
ā¢ {{all_sensors|replace(', ', '
ā¢ ')}}
or both
if:
- condition: template
value_template: "{{ all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
else:
- action: notify.telegram
metadata: {}
data:
title: Batterie Scariche
message: |-
{{all_sensors|replace(', ', '
')}}
or this one
"{{all_sensors|replace("_"," ")}}"
Let us know if any work as I donāt have telegram and once we work it out I will put it into the FAQ.
Blacky
ok by modifying code you sent I was able to make it work with code
if:
- condition: template
value_template: "{{ all_sensors == '' }}"
then:
- action: notify.telegram
metadata: {}
data:
message: Tutte le Batterie sono OK
else:
- action: notify.telegram
metadata: {}
data:
title: šŖ«Batterie Scariche
message: |
ā¢"{{all_sensors|replace("_","
ā¢ ")}}"
but I canāt fix the lines these are sensors in the Notification UI
this is what I see on telegram
We are getting there. Could you try this as it not really listing them correctly.
message: "{{ all_sensors|replace(\"_\", \" \")|replace(\",\", \"\\n\") }}"
If you go into a sensor you will find your friendly names have all the ā_ā. If you look at this post you can edit the names that suits you better and you just may find that it works better. Try one that is in the notification and see if it works better.
Blacky
@Blacky
by entering this
message: "{{ all_sensors|replace(\"_\", \" \")|replace(\",\", \"\\n\") }}"
mi da errore "template value should be a string for dictionary value @ data[0][ādataā] " quindi modificato come segue
message: >
"{{ all_sensors|replace("_", " ")|replace(",", "n") }}"
this is how I get it now
I also changed the names of the sensors by shortening them even if they didnāt have āā
Try this.
message: >
{{ all_sensors|replace("_", " ")|replace(",", "\n") }}
And also this
message: |
ā¢ {{all_sensors|replace("_"," ")|replace(",", "
ā¢ ")}}