|
|
|
@ -185,11 +185,7 @@
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{%- endmacro -%}
|
|
|
|
{%- endmacro -%}
|
|
|
|
|
|
|
|
|
|
|
|
{% macro fact_of_the_day() %}
|
|
|
|
{# friendly duration/location helper #}
|
|
|
|
[incorporate into the message a relevant fact about something that happened in the past on this day]
|
|
|
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# friendly duration/location helper #}
|
|
|
|
|
|
|
|
{% macro friendly_location(person_id, place_sensor_id, name) %}
|
|
|
|
{% macro friendly_location(person_id, place_sensor_id, name) %}
|
|
|
|
{% set person = states[person_id] %}
|
|
|
|
{% set person = states[person_id] %}
|
|
|
|
{% if not person %}
|
|
|
|
{% if not person %}
|
|
|
|
@ -318,7 +314,7 @@
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{# call a Random fact about the house or inspiration quote #}
|
|
|
|
{# call a Random fact about the house or inspiration quote #}
|
|
|
|
{{ ([moon, holiday, days_until, fact_of_the_day]|random)() }}
|
|
|
|
{{ ([moon, holiday, days_until ]|random)() }}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
[Previous broadcast for context: "{{ state_attr('sensor.openai_response', 'response') }}" ]
|
|
|
|
[Previous broadcast for context: "{{ state_attr('sensor.openai_response', 'response') }}" ]
|
|
|
|
|
|
|
|
|
|
|
|
|