mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 04:04:06 +00:00
#1368 - More voice enhancements and prompt adjustments
This commit is contained in:
@@ -38,21 +38,11 @@
|
||||
data:
|
||||
personarriving: >
|
||||
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
|
||||
{% set peoplecount = expand('group.arriving') | count %}
|
||||
{% if peoplecount == 1 %}
|
||||
{% set is_are = ' is ' %}
|
||||
{% else %}
|
||||
{% set is_are = ' are ' %}
|
||||
{% endif %}
|
||||
{%- macro greeting_sentence(person, is_are) -%}
|
||||
{{ [
|
||||
"Welcome back home " ~ person,
|
||||
person ~ is_are + " home now."
|
||||
] | random }}
|
||||
[Welcome them home in a random style]
|
||||
{%- macro greeting_sentence(person) -%}
|
||||
{{ ["[Welcome " ~ person + " home]"] }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{{greeting_sentence(person, is_are)}}
|
||||
{{greeting_sentence(person)}}
|
||||
call_responsibilities: 1
|
||||
call_no_announcement: 1
|
||||
call_garage_check: 1
|
||||
|
Reference in New Issue
Block a user