maurizio53
(Maurizio Fabiani)
1
Can someone explain me what is wrong in this script?
script:
check_gdrive_successful:
sequence:
- service: notify.telegram
data_template:
title: '**-- GDrive Backup HASSIO --**'
message: &check_sync >-
{% if is_state("input_boolean.gdrive_sync_completed", "off") -%}
ERRORE nel Gdrive backup!
{%- else -%}
Backup su GDrive completato alle {{states('sensor.time')}}
{%- endif %}
I get NO notification from telegram bot.
petro
(Petro)
2
get rid of the invalid anchor
petro
(Petro)
4
You’re trying to create an anchor here on a single field that doesn’t result in a dictionary. I.E. It’s invalid.
maurizio53
(Maurizio Fabiani)
5
So the solution is simply to remove that?
That script is part of a package…
petro
(Petro)
6
Yes but after looking at yaml documentation, that might be valid.
maurizio53
(Maurizio Fabiani)
7
Yes i checked me too, but why i don’t get the notification?
petro
(Petro)
8
Try executing a normal service through the service caller