Hello, I am trying to get my google home to say hello to the person who gets home. So far I have to person connected via tracker. I thought I found the way to do it, but it says me “Hallo Trigger Entity Id…”, it doesn’t decode what is inside the {{ trigger.entity_id.attributes.friendly_name }}
here is my full automation right now:
- id: '1578556095089'
alias: Welcome Home
trigger:
- entity_id: device_tracker.honor_10_8f45ce529244b93
from: not_home
platform: state
to: home
- entity_id: device_tracker.android_glorita
from: not_home
platform: state
to: home
condition:
- after: '10:00:00'
condition: time
action:
- entity_id: media_player.google_home_mini
service: media_player.turn_on
- delay: 00:00:02
- data:
entity_id: media_player.google_home_mini
message: Hallo {{ trigger.entity_id.attributes.friendly_name }}
service: tts.google_say
- delay: 00:00:04
- entity_id: media_player.google_home_mini
service: media_player.turn_off
Can someone please help me with this?
Thank you!