From 1dfc634d9ca345e4cca89a814ef1cc24d241a474 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Thu, 19 Mar 2026 16:29:19 +0100 Subject: [PATCH] Fix garage automation triggers and improve presence handling - Update leaving trigger to fire on any transition from "home" (not just to "not_home") - Handle zone-based states (e.g. Arbeit, Dybbroparken) correctly - Relax SnowyWhite tracker condition to allow non-"not_home" states (fixes blocking on "unknown") - Improve reliability of presence-based garage control --- .../open_garage_when_car_arrives.yaml | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/include/automations/open_garage_when_car_arrives.yaml b/include/automations/open_garage_when_car_arrives.yaml index 921efe1..5da19f8 100644 --- a/include/automations/open_garage_when_car_arrives.yaml +++ b/include/automations/open_garage_when_car_arrives.yaml @@ -1,26 +1,27 @@ - id: garage_auto_claus_presence alias: Garage auto Claus - trigger: - - platform: state - entity_id: device_tracker.clausiphone - to: "home" - id: arriving +trigger: + - platform: state + entity_id: device_tracker.clausiphone + to: "home" + id: arriving - - platform: state - entity_id: device_tracker.clausiphone - from: "home" - to: "not_home" - id: leaving + - platform: state + entity_id: device_tracker.clausiphone + from: "home" + id: leaving - condition: - - condition: time - after: "05:00:00" - before: "23:00:00" +condition: + - condition: time + after: "05:00:00" + before: "23:00:00" - - condition: state - entity_id: device_tracker.snowywhite_location_tracker - state: "home" + - condition: not + conditions: + - condition: state + entity_id: device_tracker.snowywhite_location_tracker + state: "not_home" action: - choose: