Update announcements.yaml

This commit is contained in:
Aurélio Saraiva 2020-04-26 18:38:33 -03:00 committed by GitHub
parent 14b278c9d3
commit 71a6ecc280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
- service: script.speech_engine
data_template:
personarriving: >
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
{% set person = state_attr(trigger.entity_id, "friendly_name")%}
{%- macro greeting_sentence(person) -%}
{{ [
"Welcome back home " ~ person,