From 2353de7882fc63867f612c7f60579e59db11c2bd Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Tue, 21 Sep 2021 17:36:00 +0200 Subject: [PATCH 1/3] Fix Sina hat Elmo verlassen --- packages/zone.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 From 403e041deff5f8fd77eb1d23b7c909b4004be07b Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Tue, 21 Sep 2021 17:39:01 +0200 Subject: [PATCH 2/3] Trigger Is User Home Determiner everytime --- packages/away_mode.yaml | 1 - 1 file changed, 1 deletion(-) 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 From 52df0eb6bd9556f705c73f489123d1fe3c05d6d0 Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Tue, 21 Sep 2021 17:39:58 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Only=20trigger=20humidity=20alert=20if=20?= =?UTF-8?q?=20under=2010=C2=B0C=20outside?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/humidity_alert.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: