mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-09-02 02:52:12 +00:00
Removign traffic notices untuil I can work out the Wyze thing. Sensr hasn't been working well
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{%- macro getReport() -%}
|
||||
<p>
|
||||
{% set person = expand('group.people')| selectattr('state', 'eq', 'home') | map(attribute='name')|join(' and ') %}
|
||||
{% set peoplecount = expand('group.arriving') | count %}
|
||||
{% set peoplecount = expand('group.people') | count %}
|
||||
{% if peoplecount == 0 %}
|
||||
<s>Welcome Home</s>
|
||||
{% else %}
|
||||
@@ -15,11 +15,11 @@
|
||||
{% set has_have = ' have ' %}
|
||||
{% endif %}
|
||||
{%- macro greeting_sentence(person, is_are, has_have) -%}
|
||||
{{ [
|
||||
"Welcome back home " ~ person,
|
||||
"Hey" ~ person + "! High Five! Glad you are finally home.",
|
||||
"Welcome home " ~ person
|
||||
] | random }}"Welcome back home " ~ person,
|
||||
{{ [
|
||||
"Welcome back home " ~ person + ".",
|
||||
"Hey " ~ person + "! High Five! Glad you are finally home.",
|
||||
"Welcome home " ~ person + "."
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
{{greeting_sentence(person, is_are, has_have)}}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user