|
|
|
@ -203,10 +203,6 @@
|
|
|
|
[Include a fact about something that happened in the past on this day at the end of the message]
|
|
|
|
[Include a fact about something that happened in the past on this day at the end of the message]
|
|
|
|
{% endmacro %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
|
|
{%- macro traffic_time() -%}
|
|
|
|
|
|
|
|
Travel Time to Spectrum: {{ states.sensor.waze_travel_time.state }} minutes.
|
|
|
|
|
|
|
|
{%- endmacro -%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
|
|
|
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text and replaces underscores with spaces #}
|
|
|
|
{%- macro cleanup(data) -%}
|
|
|
|
{%- macro cleanup(data) -%}
|
|
|
|
{%- for item in data.split("\n") if item | trim != "" -%}
|
|
|
|
{%- for item in data.split("\n") if item | trim != "" -%}
|
|
|
|
@ -230,11 +226,11 @@
|
|
|
|
{% set year = current_date.strftime('%Y') %}
|
|
|
|
{% set year = current_date.strftime('%Y') %}
|
|
|
|
{% 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:
|
|
|
|
Residents: Location
|
|
|
|
- Carlo (Dad): {{ states('person.carlo') }}
|
|
|
|
- Carlo (Dad): {{ states('device_tracker.life360_carlo_costanzo') }} at {{ state_attr('device_tracker.life360_carlo_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_carlo_costanzo', 'place') != None else 'Away' }}
|
|
|
|
- Stacey (Mom): {{ states('person.stacey') }}
|
|
|
|
- Stacey (Mom): {{ states('device_tracker.life360_stacey_costanzo')}} at {{ state_attr('device_tracker.life360_stacey_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_stacey_costanzo', 'place') != None else 'Away' }}
|
|
|
|
- Justin (Son): {{ states('person.justin') }}
|
|
|
|
- Justin (Son): {{ states('device_tracker.life360_justin_costanzo') }} at {{ state_attr('device_tracker.life360_justin_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_justin_costanzo', 'place') != None else 'Away' }}
|
|
|
|
- Paige (Daughter): {{ states('person.paige') }}
|
|
|
|
- Paige (Daughter): {{ states('device_tracker.life360_paige_costanzo') }} at {{ state_attr('device_tracker.life360_paige_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_paige_costanzo', 'place') != None else 'Away' }}
|
|
|
|
and our cat Molly: Always home.
|
|
|
|
and our cat Molly: Always home.
|
|
|
|
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
|
|
|
|
Previous broadcast: "{{ state_attr('sensor.openai_response', 'response') }}"
|
|
|
|
[Avoid repeating information from the previous broadcast if it was within the hour]
|
|
|
|
[Avoid repeating information from the previous broadcast if it was within the hour]
|
|
|
|
@ -310,10 +306,6 @@
|
|
|
|
{{ medicine() }}
|
|
|
|
{{ medicine() }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if day_of_week in ['Mon', 'Wed', 'Sun'] and (hour in [7, 8, 13, 14] or 17 <= hour <= 21) %}
|
|
|
|
|
|
|
|
{{ traffic_time() }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if value1 is not none %}
|
|
|
|
{% if value1 is not none %}
|
|
|
|
{{ value1 | default }}
|
|
|
|
{{ value1 | default }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|