Work on house status report
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
{# Daily Briefing #}
|
||||
{%- macro getReport() -%}
|
||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
|
||||
{% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %}
|
||||
{% from 'status.jinja' import houseStatusReport, tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %}
|
||||
{% from 'easy_time.jinja' import count_the_days %}
|
||||
{% from 'weather.jinja' import weatherReport %}
|
||||
<p>
|
||||
@ -221,22 +221,7 @@
|
||||
|
||||
|
||||
<p>
|
||||
'Around the house, there are currently {{ states('sensor.current_lights_on') }} lights on. '
|
||||
{% set windows = states('sensor.windows_open') %}
|
||||
{% set doors = states('sensor.doors_open') %}
|
||||
{% if states('sensor.total_faults') > '0' %}
|
||||
"Additionally, "
|
||||
{% if windows > '0' and doors > '0' %}
|
||||
"There are currently {{ states('sensor.windows_open') }} {% if windows == '1' %}window {% else %}windows {% endif %}and {{ states('sensor.doors_open') }} {% if doors == '1' %}door {% else %}doors {% endif %}open. "
|
||||
{% else %}
|
||||
{% if windows > '0' %}
|
||||
"There {% if windows == '1' %}is {% else %}are {% endif %}currently {{ states('sensor.windows_open') }} {% if windows == '1' %}window {% else %}windows {% endif %}open. "
|
||||
{% endif %}
|
||||
{% if doors > '0' %}
|
||||
"There {% if doors == '1' %}is {% else %}are {% endif %}currently {{ states('sensor.doors_open') }} {% if doors == '1' %}door {% else %}doors {% endif %}open. "
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ houseStatusReport('full','tts') }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user