"Welcome Home. Here is what's going on around the house right now:
{%- macro responsibilities() -%}
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day.
@ -35,7 +36,17 @@
{%endif%}
{%- endmacro -%}
{{responsibilities()}}
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
{%- macro inside_weather() -%}
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity.
{%- endmacro -%}
{{inside_weather()}}
{%- macro outside_weather() -%}
Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
{%- endmacro -%}
{{outside_weather()}}
{% if is_state('cover.large_garage', 'open') -%}
Also, The Large Garage Door is still open
{% endif -%}
@ -43,12 +54,14 @@
{% if is_state('cover.large_garage', 'open') -%}and
{%- endif %} The small Garage Door is still open.
{% endif %}
{%- macro lights_status() -%}
. There are
{% for state in states.light if state.state == 'on' -%}
{%- if loop.last -%}
{{loop.index }}
{%- endif -%}
{%- endfor %} lights on right now."
{%- endfor %} lights on right now.
{% set comma = joiner(', ') %} The
{% for group in states.group|groupby('state') -%}
{%- for entity in group.list if entity.state == 'on' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%}