Nightly briefing says proper times for K's school days #52

This commit is contained in:
2022-10-13 19:31:19 -04:00
parent ac643da3a1
commit c3440941c7

View File

@ -11,10 +11,12 @@
{% endif %} {% endif %}
{% if is_state('sensor.school_tomorrow','on') %} {% if is_state('sensor.school_tomorrow','on') %}
{% if is_state('sensor.band_tomorrow','on') %} {% if is_state('sensor.band_tomorrow','on') %}
"Kallen has school tomorrow, and there will be band practice in the morning. " "Kallen has school tomorrow, and there will be band practice in the morning at {{ as_timestamp(strptime(state_attr('calendar.kallen_school_days','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. "
{% else %} {% else %}
"Kallen has school tomorrow. " "Kallen has school tomorrow at {{ as_timestamp(strptime(state_attr('calendar.kallen_school_days','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. "
{% endif %} {% endif %}
{% else %}
"Kallen does not have school tomorrow. "
{% endif %} {% endif %}
"I am currently unable to tell you whether Tina works tomorrow. Coming soon, I hope. " "I am currently unable to tell you whether Tina works tomorrow. Coming soon, I hope. "
</p> </p>