From dfc5c10ec30d631e22df714f557a78ad58a8e744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kl=C3=BCter?= Date: Sat, 19 Oct 2024 17:38:25 +0200 Subject: [PATCH] Update Shutter --- blueprints/covers/automaticShutterDoor.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/blueprints/covers/automaticShutterDoor.yaml b/blueprints/covers/automaticShutterDoor.yaml index 84c35d3..7a9f6aa 100644 --- a/blueprints/covers/automaticShutterDoor.yaml +++ b/blueprints/covers/automaticShutterDoor.yaml @@ -29,7 +29,7 @@ blueprint: default: "21:30:00" selector: time: - sensor_device: + sensor_entity: name: Door/Window Sensor selector: entity: @@ -93,28 +93,30 @@ actions: state: "off" sequence: - action: cover.open_cover - target: !input shutter_entity + target: + - entity_id: !input shutter_entity - conditions: - and: - condition: trigger id: workday_trigger - condition: device type: is_not_open - entity_id: !input sensor_device + entity_id: !input sensor_entity - condition: numeric_state entity_id: sun.sun attribute: elevation below: -5 sequence: - action: cover.open_cover - target: !input shutter_entity + target: + - entity_id: !input shutter_entity - conditions: - and: - condition: trigger id: sun_elevation_trigger - condition: device type: is_not_open - entity_id: !input sensor_device + entity_id: !input sensor_entity - condition: numeric_state entity_id: sun.sun attribute: elevation @@ -124,9 +126,12 @@ actions: - condition: time before: !input close_time then: - - entity_id: !input shutter_entity - type: set_position + action: cover.set_cover_position + target: + entity_id: !input shutter_entity + data: position: 60 else: + - action: cover.close_cover + target: - entity_id: !input shutter_entity - type: close