diff --git a/blueprints/automation/apply_lighting_mode.yaml b/blueprints/automation/apply_lighting_mode.yaml index 5aabd55..245770f 100644 --- a/blueprints/automation/apply_lighting_mode.yaml +++ b/blueprints/automation/apply_lighting_mode.yaml @@ -62,7 +62,12 @@ action: - service: adaptive_lighting.change_switch_settings target: entity_id: "{{ al_switch }}" - data: "{{ al_config | combine({'use_defaults': 'current'}) }}" + data: > + {% if 'use_defaults' not in al_config %} + {{ al_config | combine({'use_defaults': 'current'}) }} + {% else %} + {{ al_config }} + {% endif %} # Behavior: scene - conditions: "{{ behavior == 'scene' }}"