From bc6de3722a6ed39666612e2ffbfd9b9b3b14938e Mon Sep 17 00:00:00 2001 From: ccostan Date: Mon, 27 Jun 2022 13:11:34 -0400 Subject: [PATCH] Updated Speech stuff.. no more garage checks. --- config/templates/speech/briefing.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index 3466f8bf..093dd146 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -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() -%} @@ -327,7 +327,7 @@ {{ dark_outside() }} {% 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() }} {% endif %}