From 1de8b284cc22c0c709135d80480b2cbcbbe9aeef Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 4 Feb 2023 13:36:33 +0100 Subject: [PATCH] Change brightness values for automation add condition at home --- configuration/automations/brightness.yaml | 24 +++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/configuration/automations/brightness.yaml b/configuration/automations/brightness.yaml index c16e142..6295f06 100644 --- a/configuration/automations/brightness.yaml +++ b/configuration/automations/brightness.yaml @@ -9,6 +9,10 @@ hours: 0 minutes: 1 seconds: 0 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day action: - service: cover.close_cover target: @@ -56,6 +60,10 @@ hours: 0 minutes: 1 seconds: 0 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day action: - service: script.office_lights_off @@ -66,7 +74,7 @@ - platform: numeric_state entity_id: sensor.office_illuminance above: '30' - below: '150' + below: '800' for: hours: 0 minutes: 0 @@ -74,7 +82,7 @@ - platform: numeric_state entity_id: sensor.office_illuminance above: '30' - below: '150' + below: '800' for: hours: 0 minutes: 1 @@ -82,7 +90,7 @@ - platform: numeric_state entity_id: sensor.office_illuminance above: '30' - below: '150' + below: '800' for: hours: 0 minutes: 2 @@ -90,11 +98,15 @@ - platform: numeric_state entity_id: sensor.office_illuminance above: '30' - below: '150' + below: '800' for: hours: 0 minutes: 3 seconds: 0 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day action: - choose: - conditions: @@ -126,6 +138,10 @@ hours: 0 minutes: 1 seconds: 0 + condition: + - condition: state + entity_id: input_select.home_mode + state: Day action: - service: cover.close_cover target: