From 621fdeb7094ef1ee9349f194e00116eb5d6c117b Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 15 Nov 2025 12:19:37 -0800 Subject: [PATCH] Only apply adaptive lighting when switch is on Fixes #1 --- occupancy_controlled_lights.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/occupancy_controlled_lights.yaml b/occupancy_controlled_lights.yaml index e5ff4ec..eee8a07 100644 --- a/occupancy_controlled_lights.yaml +++ b/occupancy_controlled_lights.yaml @@ -86,7 +86,7 @@ action: sequence: - if: - condition: template - value_template: "{{ adaptive_lighting_switch != none and adaptive_lighting_switch != {} }}" + value_template: "{{ adaptive_lighting_switch != none and adaptive_lighting_switch != {} and states(adaptive_lighting_switch) == 'on' }}" then: - action: adaptive_lighting.apply data: