From 9210c8d58ada2aa06b569a0f9b0e0fdbf0a19b66 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 11 Nov 2021 22:12:17 -0500 Subject: [PATCH] Better way to test for state --- config/packages/daily.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/packages/daily.yaml b/config/packages/daily.yaml index 2bb031c..7de9497 100755 --- a/config/packages/daily.yaml +++ b/config/packages/daily.yaml @@ -359,9 +359,9 @@ automation: entity_id: input_datetime.good_morning data_template: time: > - {% if states.calendar.skylar_school.attributes.offset_reached == True %} + {% if is_state_attr('calendar.skylar_school', 'offset_reached',True) %} 06:45 - {% elif states.binary_sensor.workday_sensor.state == 'on' %} + {% elif is_state('binary_sensor.workday_sensor.state','on') %} 07:00 {% else %} 07:30