Had to remove garage door checks until hardware is fixe. #1138

This commit is contained in:
ccostan
2022-06-24 09:43:42 -04:00
parent 77584e8de5
commit a7b1359e2a
7 changed files with 31 additions and 28 deletions

View File

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