Hi guys
when I added template data to random I got an error.
do you have any idea?
thanks in advance
- service: script.hassio_talk
data_template:
message: >
{{ [
"sunset will be" {{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom(' %I:%M%p') | replace(" 0", "")}} "we become ready for it",
"sunset is close! you see the really beautiful red sky at sunset",
"Keep in mind that a sunset is a beautiful phenomenon. we are close to it"
] |random }}