mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Breaking out the Macros into an include file.
This commit is contained in:
@@ -22,18 +22,5 @@
|
|||||||
value1: >
|
value1: >
|
||||||
|
|
||||||
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
{% set person = trigger.entity_id.split('.')[1]|replace('_', ' ')%}
|
||||||
|
!include voice.macros
|
||||||
{% macro greeting_sentence(person) %}
|
|
||||||
{{ [
|
|
||||||
"Welcome home " ~ person,
|
|
||||||
"Guess who is home? " ~ person +" is!",
|
|
||||||
"Attention: " ~ person + " is now in the house.",
|
|
||||||
person ~ " in da house!",
|
|
||||||
"Welcome Home " ~ person + ". We've 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,
|
|
||||||
person ~ "! You're home!"
|
|
||||||
] | random }}
|
|
||||||
{% endmacro %}
|
|
||||||
{{greeting_sentence(person)}}
|
{{greeting_sentence(person)}}
|
||||||
13
automation/Speech/voice.macros
Executable file
13
automation/Speech/voice.macros
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
{% macro greeting_sentence(person) %}
|
||||||
|
{{ [
|
||||||
|
"Welcome home " ~ person,
|
||||||
|
"Guess who is home? " ~ person +" is!",
|
||||||
|
"Attention: " ~ person + " is now in the house.",
|
||||||
|
person ~ " in da house!",
|
||||||
|
"Welcome Home " ~ person + ". We've 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<6F>re back where you belong. Welcome home" ~ person,
|
||||||
|
"Hey there " ~ person,
|
||||||
|
person ~ "! You're home!"
|
||||||
|
] | random }}
|
||||||
|
{% endmacro %}
|
||||||
Reference in New Issue
Block a user