Only apply adaptive lighting when switch is on
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user