mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-06-16 21:58:08 +00:00
Refactor speech briefing template to improve formatting for resident location display
This commit is contained in:
parent
a2be180639
commit
571b964dd3
@ -239,26 +239,26 @@
|
|||||||
{% set time = current_date.strftime('%I:%M %p') %}
|
{% set time = current_date.strftime('%I:%M %p') %}
|
||||||
Current date time: {{ month }} {{ day }}, {{ year }} {{ time }}
|
Current date time: {{ month }} {{ day }}, {{ year }} {{ time }}
|
||||||
|
|
||||||
Residents: Location
|
Resident: Location
|
||||||
- Carlo: {{ states('person.carlo') }} at
|
- Carlo:
|
||||||
{%- if states('sensor.carlo_place') != 'unknown' %}
|
{%- if states('sensor.carlo_place') != 'unknown' %}
|
||||||
{{ states('sensor.carlo_place') }}
|
{{ states('sensor.carlo_place') }}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
Away
|
Away
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
- Stacey: {{ states('person.stacey') }} at
|
- Stacey:
|
||||||
{%- if states('sensor.stacey_place') != 'unknown' %}
|
{%- if states('sensor.stacey_place') != 'unknown' %}
|
||||||
{{ states('sensor.stacey_place') }}
|
{{ states('sensor.stacey_place') }}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
Away
|
Away
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
- Justin: {{ states('person.justin') }} at
|
- Justin:
|
||||||
{%- if states('sensor.justin_place') != 'unknown' %}
|
{%- if states('sensor.justin_place') != 'unknown' %}
|
||||||
{{ states('sensor.justin_place') }}
|
{{ states('sensor.justin_place') }}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
Away
|
Away
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
- Paige: {{ states('person.paige') }} at
|
- Paige:
|
||||||
{%- if states('sensor.paige_place') != 'unknown' %}
|
{%- if states('sensor.paige_place') != 'unknown' %}
|
||||||
{{ states('sensor.paige_place') }}
|
{{ states('sensor.paige_place') }}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user