From 571b964dd33a7c5cdd21fea31a78d80da0e8e4a7 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Wed, 11 Jun 2025 10:12:00 -0400 Subject: [PATCH] Refactor speech briefing template to improve formatting for resident location display --- config/templates/speech/briefing.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index 33c8370d..76754c08 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -239,26 +239,26 @@ {% set time = current_date.strftime('%I:%M %p') %} Current date time: {{ month }} {{ day }}, {{ year }} {{ time }} - Residents: Location - - Carlo: {{ states('person.carlo') }} at + Resident: Location + - Carlo: {%- if states('sensor.carlo_place') != 'unknown' %} {{ states('sensor.carlo_place') }} {% else -%} Away {% endif -%} - - Stacey: {{ states('person.stacey') }} at + - Stacey: {%- if states('sensor.stacey_place') != 'unknown' %} {{ states('sensor.stacey_place') }} {% else -%} Away {% endif -%} - - Justin: {{ states('person.justin') }} at + - Justin: {%- if states('sensor.justin_place') != 'unknown' %} {{ states('sensor.justin_place') }} {% else -%} Away {% endif -%} - - Paige: {{ states('person.paige') }} at + - Paige: {%- if states('sensor.paige_place') != 'unknown' %} {{ states('sensor.paige_place') }} {% else -%}