From 04c29a88394f2df03069e85bccb48c40e1de9243 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Fri, 17 Apr 2026 07:58:01 +0200 Subject: [PATCH] Skift cover.open/close til cover.toggle med sensor-check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GoGoGate2 tror altid porten er lukket, så open/close virker ikke. Bruger nu cover.toggle med binary_sensor.garageport check. --- include/automations/bryggerbutton.yaml | 10 ++++++++-- include/automations/garage_anne.yaml | 5 ++++- include/automations/open_garage_when_car_arrives.yaml | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/automations/bryggerbutton.yaml b/include/automations/bryggerbutton.yaml index 7b3aafd..5f0ff69 100644 --- a/include/automations/bryggerbutton.yaml +++ b/include/automations/bryggerbutton.yaml @@ -34,7 +34,10 @@ - condition: trigger id: open_garage sequence: - - service: cover.open_cover + - condition: state + entity_id: binary_sensor.garageport + state: "off" + - service: cover.toggle target: entity_id: cover.anne @@ -42,7 +45,10 @@ - condition: trigger id: close_garage sequence: - - service: cover.close_cover + - condition: state + entity_id: binary_sensor.garageport + state: "on" + - service: cover.toggle target: entity_id: cover.anne diff --git a/include/automations/garage_anne.yaml b/include/automations/garage_anne.yaml index 1edc767..c3800c7 100644 --- a/include/automations/garage_anne.yaml +++ b/include/automations/garage_anne.yaml @@ -62,7 +62,10 @@ - condition: template value_template: "{{ wait.trigger.event.data.action == 'CLOSE_GARAGE_ANNE' }}" sequence: - - service: cover.close_cover + - condition: state + entity_id: binary_sensor.garageport + state: "on" + - service: cover.toggle target: entity_id: cover.anne - stop: "Garage lukket via notifikation" diff --git a/include/automations/open_garage_when_car_arrives.yaml b/include/automations/open_garage_when_car_arrives.yaml index 7040807..7b4c2e0 100644 --- a/include/automations/open_garage_when_car_arrives.yaml +++ b/include/automations/open_garage_when_car_arrives.yaml @@ -34,7 +34,7 @@ {{ state_attr('device_tracker.snowywhite_location_tracker', 'speed') not in [None, 'unknown'] }} sequence: - - service: cover.open_cover + - service: cover.toggle target: entity_id: cover.anne @@ -58,7 +58,7 @@ sequence: - delay: "00:00:20" # giver tid til at du faktisk er kørt ud - - service: cover.close_cover + - service: cover.toggle target: entity_id: cover.anne