From d09db0ffc8c0bf6f2adf5402ddac3bab603e2afb Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 19 Oct 2022 22:47:50 +0200 Subject: [PATCH] Update brightness blinds up --- configuration/automations/brightness.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/configuration/automations/brightness.yaml b/configuration/automations/brightness.yaml index 71ffeb5..601d6a2 100644 --- a/configuration/automations/brightness.yaml +++ b/configuration/automations/brightness.yaml @@ -72,11 +72,24 @@ minutes: 1 seconds: 0 action: - - service: cover.open_cover - target: - entity_id: - - cover.dining_blinds - - service: script.office_blinds_up + - choose: + - conditions: + - condition: numeric_state + entity_id: cover.office_blinds + attribute: current_position + above: 49 + sequence: + - service: cover.set_cover_position + data: + position: 50 + target: + entity_id: cover.office_blinds + default: + - service: cover.open_cover + target: + entity_id: + - cover.dining_blinds + - service: script.office_blinds_up - id: brightness-bright alias: '[Brightness] Bright - close covers'