Removign traffic notices untuil I can work out the Wyze thing. Sensr hasn't been working well

This commit is contained in:
Jeffrey Stone 2022-02-24 23:10:34 -05:00
parent 95e6f64561
commit 4f036d1a4d
3 changed files with 9 additions and 44 deletions

View File

@ -269,7 +269,7 @@
{% if 'Fools' in event %} {% if 'Fools' in event %}
{{ [ {{ [
'Which reminds me. The camera looking at tbe drive way caught a Tee Rex last night. <break time="1s"/> April Fools!', 'Which reminds me. The camera looking at the drive way caught a Tee Rex last night. <break time="1s"/> April Fools!',
'Which reminds me. I won the lottery and I am moving out to go live with Siri. <break time="1s"/> April Fools!', 'Which reminds me. I won the lottery and I am moving out to go live with Siri. <break time="1s"/> April Fools!',
'Which reminds me. there was a time change last night. We have jumped 15 years into the future. <break time="1s"/> April Fools!' 'Which reminds me. there was a time change last night. We have jumped 15 years into the future. <break time="1s"/> April Fools!'
]|random }} ]|random }}
@ -362,26 +362,7 @@
</p> </p>
{% if is_state('binary_sensor.morning','on') %}
<p>
{%- if states.sensor.home_to_zoo.state|round > 50 %}
Traffic to the Zoo appears heavy than normnal.
{% else %}
Traffic to the Zoo is normal.
{% endif %}
Currently it will take {{states.sensor.home_to_zoo.state|round}} minutes to get to the Zoo taking {{ states.sensor.home_to_zoo.attributes.route }}.
{%- if states.sensor.home_to_summit.state|round > 50 %}
Traffic to Summit appears heavy than normnal.
{% else %}
Traffic to Summit is normal.
{% endif %}
Currently it will take {{states.sensor.home_to_summit.state|round}} minutes to get to Summit taking {{ states.sensor.home_to_summit.attributes.route }}
</p>
{%- endif -%}
<p> <p>
@ -406,7 +387,7 @@
{%- if is_state('climate.home','off') %} {%- if is_state('climate.home','off') %}
The internal climate control system is off. The temperature inside is {{ states.climate.home.attributes.current_temperature }} degrees. The internal climate control system is off. The temperature inside is {{ states.climate.home.attributes.current_temperature }} degrees.
{%- elif is_state('climate.home','heat_cool') %} {%- elif is_state('climate.home','heat_cool') %}
The internal climate control system will try to keep the temperature between {{ states.climate.home.attributes.target_temp_low }} and {{ states.climate.home.attributes.target_temp_high }}. The internal climate control system will try to keep the temperature between {{ states.climate.home.attributes.target_temp_low }} and {{ states.climate.home.attributes.target_temp_high }} degrees.
{% else %} {% else %}
The internal climate control system is set to {{ states.climate.home.state }} with a current temperature of {{ states.climate.home.attributes.current_temperature }} which is The internal climate control system is set to {{ states.climate.home.state }} with a current temperature of {{ states.climate.home.attributes.current_temperature }} which is

View File

@ -161,22 +161,6 @@
{% endif %} {% endif %}
</p> </p>
<p>
{%- if states.sensor.home_to_zoo.state|round > 50 %}
Traffic to the Zoo appears heavy than normal.
{% else %}
Traffic to the Zoo is normal.
{% endif %}
Currently it will take {{states.sensor.home_to_zoo.state|round}} minutes to get to the Zoo taking {{ states.sensor.home_to_zoo.attributes.route }}.
{%- if states.sensor.home_to_summit.state|round > 50 %}
Traffic to Summit appears heavy than normal.
{% else %}
Traffic to Summit is normal.
{% endif %}
Currently it will take {{states.sensor.home_to_summit.state|round}} minutes to get to Summit taking {{ states.sensor.home_to_summit.attributes.route }}.
</p>
{%- endmacro -%} {%- endmacro -%}

View File

@ -3,7 +3,7 @@
{%- macro getReport() -%} {%- macro getReport() -%}
<p> <p>
{% set person = expand('group.people')| selectattr('state', 'eq', 'home') | map(attribute='name')|join(' and ') %} {% 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 %} {% if peoplecount == 0 %}
<s>Welcome Home</s> <s>Welcome Home</s>
{% else %} {% else %}
@ -15,11 +15,11 @@
{% set has_have = ' have ' %} {% set has_have = ' have ' %}
{% endif %} {% endif %}
{%- macro greeting_sentence(person, is_are, has_have) -%} {%- macro greeting_sentence(person, is_are, has_have) -%}
{{ [ {{ [
"Welcome back home " ~ person, "Welcome back home " ~ person + ".",
"Hey" ~ person + "! High Five! Glad you are finally home.", "Hey " ~ person + "! High Five! Glad you are finally home.",
"Welcome home " ~ person "Welcome home " ~ person + "."
] | random }}"Welcome back home " ~ person, ] | random }}
{%- endmacro -%} {%- endmacro -%}
{{greeting_sentence(person, is_are, has_have)}} {{greeting_sentence(person, is_are, has_have)}}
{% endif %} {% endif %}