Hello, I am trying to do something simple but it seems I am not sure how to reference one of the variables. Basically, I would like a text input in the UI so I can define a string for a name (i.e. Guest name). When the guest opens the door, a phrase will greet them through the Google Home and reference their name at the beginning. I am not sure how to reference the guest name variable, the rest is working perfectly. Does anyone know why {{states(input_text.guest_name_state)}} is not working or what to replace it with? Thank you!
input_text:
guest_name:
name: Guest
initial: guest
automation:
- alias: 'welcome'
trigger:
- platform: state
entity_id: sensor.front_door
to: 'Open'
action:
- service: tts.google_translate_say
entity_id: media_player.living_room_home
data:
message: Welcome {{states(input_text.guest_name_state)}}
cache: false