Updated Speech stuff.. no more garage checks.

This commit is contained in:
ccostan 2022-06-27 13:11:34 -04:00
parent a7b1359e2a
commit bc6de3722a
1 changed files with 13 additions and 13 deletions

View File

@ -100,18 +100,18 @@
{%- endmacro -%} {%- endmacro -%}
{%- macro garage_check() -%} {%- macro garage_check() -%}
# {% if states.group.garage_doors.state !='closed' -%} {% if states.group.garage_doors.state !='closed' -%}
# The The
# {%- for state in states.cover -%} {%- for state in states.cover -%}
# {%- endfor %} {%- endfor %}
# {% for group in states.cover|groupby('state') -%} {% for group in states.cover|groupby('state') -%}
# {%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%} {%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%}
# {{ ' and' if loop.last and not loop.first }} {{ ' and' if loop.last and not loop.first }}
# {{ entity.attributes.friendly_name }} {{ entity.attributes.friendly_name }}
# {%- endfor -%} {%- endfor -%}
# {%- endfor %} {%- endfor %}
# need to be closed. need to be closed.
# {%- endif -%} {%- endif -%}
{%- endmacro -%} {%- endmacro -%}
{%- macro medicine() -%} {%- macro medicine() -%}
@ -327,7 +327,7 @@
{{ dark_outside() }} {{ dark_outside() }}
{% endif %} {% endif %}
{% if call_garage_check == 1 or is_state('sun.sun', 'below_horizon') %} {% if call_garage_check == 999 or is_state('sun.sun', '9999') %}
{{ garage_check() }} {{ garage_check() }}
{% endif %} {% endif %}