diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 0175b3c..9dc6331 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -27,8 +27,8 @@

- {% 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, "