mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-17 19:46:43 +00:00
Better way to test for state
This commit is contained in:
@@ -359,9 +359,9 @@ automation:
|
|||||||
entity_id: input_datetime.good_morning
|
entity_id: input_datetime.good_morning
|
||||||
data_template:
|
data_template:
|
||||||
time: >
|
time: >
|
||||||
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
|
{% if is_state_attr('calendar.skylar_school', 'offset_reached',True) %}
|
||||||
06:45
|
06:45
|
||||||
{% elif states.binary_sensor.workday_sensor.state == 'on' %}
|
{% elif is_state('binary_sensor.workday_sensor.state','on') %}
|
||||||
07:00
|
07:00
|
||||||
{% else %}
|
{% else %}
|
||||||
07:30
|
07:30
|
||||||
|
Reference in New Issue
Block a user