Only apply adaptive lighting when switch is on

Fixes #1
This commit is contained in:
2025-11-15 12:19:37 -08:00
parent f301d1b5e2
commit 621fdeb709

View File

@@ -86,7 +86,7 @@ action:
sequence: sequence:
- if: - if:
- condition: template - 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: then:
- action: adaptive_lighting.apply - action: adaptive_lighting.apply
data: data: