diff --git a/config/automation/Speech/announcements.yaml b/config/automation/Speech/announcements.yaml index efc0611f..69be6ab4 100755 --- a/config/automation/Speech/announcements.yaml +++ b/config/automation/Speech/announcements.yaml @@ -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) -%}