#TTS Greeting When arriving home

9 messages · Page 1 of 1 (latest)

fathom cloud
#

I have a blueprint setup to greet us when we come in the door. However the way it's setup it by default uses announce on for the speaker. It's a sonos one i'm playing to but i tried editing the yaml for the blue print to no success. i know it's announce: false but i don't see how to put it in this part without breaking the script.

`- service: tts.cloud_say
data:
entity_id: !input target
message: "{%- set single_lst = single_msg.split('\n') -%}\n{%- set multiple_lst
= multiple_msg.split('\n') -%}\n{%- if persons_count|length > 1 -%}\n {{ multiple_lst
| random | replace('<persons>', persons_names) }}\n{%- elif persons_count|length

0 -%}\n {{ single_lst | random | replace('<person>', persons_names) }}\n{%-
endif -%}\n"

  • condition: template
    value_template: '{{ addactions|length > 0 }}'
  • choose: []
    default: !input actions
    mode: single`
fathom cloud
#

`- service: media_player.play_media
data:
entity_id: !input target
announce: false
media_content_id: media-source://tts/cloud?message="{%- set single_lst = single_msg.split('\n') -%}\n{%- set multiple_lst
= multiple_msg.split('\n') -%}\n{%- if persons_count|length > 1 -%}\n {{ multiple_lst
| random | replace('<persons>', persons_names) }}\n{%- elif persons_count|length

0 -%}\n {{ single_lst | random | replace('<person>', persons_names) }}\n{%-
endif -%}\n"
media_content_type: music`

#

how does this look?

finite oxide
#

Hey @fathom cloud - I'm not sure if this will help, but I have a "gretting" type setup on my system that is based on zone enter/exit. It doesnt really talk to the person as they come through the door, its more of an alert to folks in the house that someone is arriving soon. My daughter uses this alert to run around like mad and try to complete the chores she was supposed to do before we come in the door! 😄

That said, the way I have mine setup is to use ChimeTTS
https://community.home-assistant.io/t/chime-tts-play-audio-before-after-tts-audio-lag-free/578430

In my system the media players will make an announcement when wither my phone or my wife's phone enters the home zone. Here's an example of the trace for me arriving home:

#

In my system the media players will make an announcement when wither my phone or my wife's phone enters the home zone. Here's an example of the trace for me arriving home:

#

When I return home the automation will:

  1. Announce to the inside speakers that I am arriving home
  2. Send a text notification to my wife that I am home
  3. If the garage door is closed, open it
  4. If the alarm is armed, disarm it
#

the yaml code for automation in the trace above is here:

#

I dont know if this will help with your specific problem, but maybe it will help you accomplish something similar to what you are attempting to do..?