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: