2018-01-02 00:00:45 +00:00
|
|
|
|
########## ############################################################
|
|
|
|
|
## Announce when people come or go.
|
|
|
|
|
## Announce over all Chromecast Audios
|
|
|
|
|
######################################################################
|
|
|
|
|
- alias: 'People Greeting'
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id:
|
|
|
|
|
- device_tracker.carlo
|
|
|
|
|
- device_tracker.stacey
|
|
|
|
|
- device_tracker.franco
|
|
|
|
|
- device_tracker.yolanda
|
|
|
|
|
from: 'not_home'
|
|
|
|
|
to: 'home'
|
|
|
|
|
for: '00:02:00'
|
|
|
|
|
|
|
|
|
|
action:
|
2020-03-11 21:27:34 +00:00
|
|
|
|
- wait_template: >-
|
|
|
|
|
{{ states.binary_sensor.kitchen_door.state == 'on' }}
|
2018-01-02 00:00:45 +00:00
|
|
|
|
- service: script.speech_engine
|
|
|
|
|
data_template:
|
|
|
|
|
personarriving: >
|
2020-04-26 21:38:33 +00:00
|
|
|
|
{% set person = state_attr(trigger.entity_id, "friendly_name")%}
|
2018-01-02 00:00:45 +00:00
|
|
|
|
{%- macro greeting_sentence(person) -%}
|
|
|
|
|
{{ [
|
|
|
|
|
"Welcome back home " ~ person,
|
|
|
|
|
"Guess who is home?" ~ person +" is!",
|
|
|
|
|
person + " is now in the house.",
|
|
|
|
|
"Welcome Home " ~ person + ". We have missed you. Or at least Molly did.",
|
|
|
|
|
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
|
|
|
|
|
"Life is like a song, you’re back where you belong. Welcome home " ~ person,
|
|
|
|
|
"Hey there " ~ person + " Welcome Home!",
|
|
|
|
|
"Knock Knock. Who is There? " ~ person +" is!",
|
2018-09-27 14:16:52 +00:00
|
|
|
|
"The garage door opener just told me that " ~ person +" is home.",
|
|
|
|
|
person + " can not hide from the system. Welcome home.",
|
2018-01-02 00:00:45 +00:00
|
|
|
|
person ~ "! You are home!",
|
2018-06-25 21:38:34 +00:00
|
|
|
|
"I know a secret! " ~ person +" is home!",
|
2018-09-27 14:16:52 +00:00
|
|
|
|
"Hey " ~ person +". Your arrival has been recorded by the Smartest house on the block.",
|
|
|
|
|
"Take note Molly! " ~ person +" is home.",
|
2018-06-25 21:38:34 +00:00
|
|
|
|
"I am sensing a disturbance in the force. " ~ person +" must be home!",
|
2018-06-25 22:04:25 +00:00
|
|
|
|
"And the house becomes a home. Welcome back " ~ person,
|
2018-06-25 21:38:34 +00:00
|
|
|
|
person + " is now here. Hash tag Welcome Home.",
|
|
|
|
|
person + " is now here. Hash tag Home.",
|
2018-09-27 14:16:52 +00:00
|
|
|
|
person + " is now here. Hash tag Smart Home.",
|
|
|
|
|
"Just a quick announcement. " ~ person +" has arrived!",
|
2018-06-25 22:04:25 +00:00
|
|
|
|
"Pardon the interruption but " ~ person +" is home!",
|
2019-03-16 20:49:57 +00:00
|
|
|
|
"My systems are picking up the presence of additional humans. " ~ person +" has been identified as home.",
|
|
|
|
|
"Welcome home "~person~"! It is nice to see you again! Let me turn on the lights. ",
|
|
|
|
|
"It looks like "~person~" is finally home! I will get the house ready for you. "
|
2018-01-02 00:00:45 +00:00
|
|
|
|
] | random }}
|
|
|
|
|
{%- endmacro -%}
|
|
|
|
|
{{greeting_sentence(person)}}
|
|
|
|
|
call_responsibilities: 1
|
|
|
|
|
call_no_announcement: 1
|
|
|
|
|
call_garage_check: 1
|
|
|
|
|
call_window_check: 1
|