diff --git a/config/packages/modes/house_mode.yaml b/config/packages/modes/house_mode.yaml index e664a4c..c74f789 100644 --- a/config/packages/modes/house_mode.yaml +++ b/config/packages/modes/house_mode.yaml @@ -59,7 +59,7 @@ automation: entity_id: group.bedroom_windows condition: - condition: template - value_template: "{{ states('input_datetime.alarm_time')[0:2] | int >= now().hour }}" + value_template: "{{ now().hour >= states('input_datetime.alarm_time')[0:2]|int }}" - condition: not conditions: - condition: state