Better way to test for state

This commit is contained in:
Jeffrey Stone 2021-11-11 22:12:17 -05:00
parent d53b43b108
commit 9210c8d58a
1 changed files with 2 additions and 2 deletions

View File

@ -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