Merge pull request #731 from aureliosaraiva/patch-1

Update announcements.yaml
This commit is contained in:
Carlo Costanzo 2020-04-27 10:14:02 -04:00 committed by GitHub
commit a76a4d527d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
{{ states.binary_sensor.kitchen_door.state == 'on' }}
- service: script.speech_engine
data_template:
# {% set person = state_attr(trigger.entity_id, "friendly_name")%} This is another way to do it.
personarriving: >
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
{%- macro greeting_sentence(person) -%}