diff --git a/packages/vacation/vacation.yaml b/packages/vacation/vacation.yaml index de6240a..9dcf29d 100644 --- a/packages/vacation/vacation.yaml +++ b/packages/vacation/vacation.yaml @@ -8,7 +8,7 @@ automation: - platform: sun event: sunset offset: '-00:30:00' - # TODO: Add Conditions + conditions: "{{ not 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' - # TODO: Add Conditions + conditions: "{{ not 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' - # TODO: Add Conditions + conditions: "{{ not is_state('input_select.house_presence_state', 'Extended Away') }}" action: - delay: "00:{{ range(0,59)|random|int }}:00" - service: light.turn_off