From e90a172d9f872d54279c7f88108a68b7f79c5d68 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Wed, 22 Mar 2023 16:43:18 -0700 Subject: [PATCH] Fix Syntax --- packages/climate/climate.yaml | 4 ++-- packages/vacation/vacation.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/climate/climate.yaml b/packages/climate/climate.yaml index a2e9de2..0b22e6b 100644 --- a/packages/climate/climate.yaml +++ b/packages/climate/climate.yaml @@ -146,7 +146,7 @@ automation: trigger: - platform: time at: input_datetime.hvac_start_night - conditions: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}" + condition: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}" action: - service: climate.set_temperature target: @@ -160,7 +160,7 @@ automation: trigger: - platform: time at: input_datetime.hvac_start_day - conditions: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}" + condition: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}" action: - service: climate.set_temperature target: diff --git a/packages/vacation/vacation.yaml b/packages/vacation/vacation.yaml index 9b6ac17..8d89dae 100644 --- a/packages/vacation/vacation.yaml +++ b/packages/vacation/vacation.yaml @@ -8,7 +8,7 @@ automation: - platform: sun event: sunset offset: '-00:30:00' - conditions: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" + condition: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" action: - delay: "00:{{ range(0,59)|random|int }}:00" - service: light.turn_on @@ -22,7 +22,7 @@ automation: trigger: - platform: time at: '18:30:00' - conditions: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" + condition: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" action: - delay: "00:{{ range(0,59)|random|int }}:00" - service: light.turn_off @@ -39,7 +39,7 @@ automation: trigger: - platform: time at: '20:30:00' - conditions: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" + condition: "{{ is_state('input_select.house_presence_state', 'Extended Away') }}" action: - delay: "00:{{ range(0,59)|random|int }}:00" - service: light.turn_off