Extended time in which the welcome home briefing mentions K's school day
This commit is contained in:
@ -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, "
|
||||
|
Reference in New Issue
Block a user