Improve time/date readout in TTS briefings

This commit is contained in:
2023-03-09 17:13:30 -05:00
parent 3764b153a1
commit 22f8003e28
4 changed files with 18 additions and 21 deletions

View File

@ -4,7 +4,11 @@
<p>
Good morning, Collin.
<s>It is {{ now().strftime("%I:%M %p") }}</s>
{% if is_state('binary_sensor.morning','on') %}
<s>Today is {{ states.sensor.today_is.state }}, {{ as_timestamp(now()) | timestamp_custom('%B %d %Y') }}.</s>
{% else %}
<s>It is {{ now().strftime("%I:%M %p") }}.</s>
{% endif %}
{% if is_state('sensor.anniversary_kallen_s_birthday', '0') %}
Even birthday boys have to get dressed. So get to it.