diff --git a/packages/away_mode.yaml b/packages/away_mode.yaml index ce1cffd..067b3ea 100644 --- a/packages/away_mode.yaml +++ b/packages/away_mode.yaml @@ -61,7 +61,6 @@ automation: trigger: platform: state entity_id: binary_sensor.contact_door - to: "on" action: - service: script.turn_on entity_id: script.is_user_home_determiner diff --git a/packages/humidity_alert.yaml b/packages/humidity_alert.yaml index 230e900..8d63ae0 100644 --- a/packages/humidity_alert.yaml +++ b/packages/humidity_alert.yaml @@ -90,7 +90,7 @@ automation: condition: numeric_state entity_id: weather.dwd_weather_wiesbaden_biebrich attribute: temperature - below: 20 + below: 10 action: - service: automation.turn_on data: @@ -175,7 +175,7 @@ automation: condition: numeric_state entity_id: weather.dwd_weather_wiesbaden_biebrich attribute: temperature - below: 20 + below: 10 action: - service: automation.turn_on data: diff --git a/packages/zone.yaml b/packages/zone.yaml index ff16455..7012aa5 100644 --- a/packages/zone.yaml +++ b/packages/zone.yaml @@ -36,19 +36,25 @@ automation: zone: "zone.elmo" event: "enter" action: - - alias: "Wait until Sina leaves Zone again" + - alias: "Wait for 30 minutes or cancel if Sina leaves" wait_for_trigger: - platform: zone entity_id: "person.sina" zone: "zone.elmo" event: "leave" timeout: "00:30:00" - - alias: "Only continue when at least 30 minutes in zone" + - alias: "Only continue when at least 30 minutes in zone without leaving" condition: template value_template: "{{ wait.remaining == 0 }}" + - alias: "Wait for Sina to leave." + wait_for_trigger: + - platform: zone + entity_id: "person.sina" + zone: "zone.elmo" + event: "leave" - alias: "Only if Kevin is not nearby" condition: template - value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') < 1 }}" + value_template: "{{ distance('device_tracker.sm_g975f', 'device_tracker.oneplus_a3003') > 1 }}" - alias: "Update travel time home of Sina" service: homeassistant.update_entity entity_id: sensor.travel_time_home_user_two_here