Extended time in which the welcome home briefing mentions K's school day

This commit is contained in:
2023-05-31 12:30:57 -04:00
parent 89013d70b9
commit 26c9273cf4

View File

@ -27,8 +27,8 @@
</p>
<p>
{% set endbefore = state_attr('input_datetime.kallen_school_day_end','timestamp') - 3600 %}
{% set endafter = state_attr('input_datetime.kallen_school_day_end','timestamp') + 3600 %}
{% set endbefore = state_attr('input_datetime.kallen_school_day_end','timestamp') - 5400 %}
{% set endafter = state_attr('input_datetime.kallen_school_day_end','timestamp') + 5400 %}
{% set current = ((now().hour * 60 + now().minute) * 60 ) %}
{% if is_state('person.kallen_stork','home') and is_state('input_boolean.kallen_school_today_extended','on') and current > endbefore and current < endafter %}
"Welcome home Collin as well, "