From ace89c2420145ceb72ae9f4d48938343ccdbffdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Thu, 23 Nov 2023 21:21:44 +0100 Subject: [PATCH] Fix bathroom button at night --- scripts/92.lights-bathroom.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/92.lights-bathroom.yaml b/scripts/92.lights-bathroom.yaml index 18e414f..b0f9bf6 100644 --- a/scripts/92.lights-bathroom.yaml +++ b/scripts/92.lights-bathroom.yaml @@ -3,9 +3,14 @@ bathroom_lights_toggle: sequence: - choose: - conditions: - - condition: state - entity_id: light.bathroom_lights - state: 'on' + - condition: or + conditions: + - condition: state + entity_id: light.bathroom_lights + state: "on" + - condition: state + entity_id: light.bathroom_color_zha_group_0x0007 + state: "on" sequence: - service: script.bathroom_lights_off - conditions: @@ -176,4 +181,4 @@ bathroom_shower_lights_off: alias: '[Bathroom] Shower lights off' sequence: - service: light.turn_off - entity_id: light.shower_lights \ No newline at end of file + entity_id: light.shower_lights