diff --git a/blueprints/automation/presence_mode_reset.yaml b/blueprints/automation/presence_mode_reset.yaml index 5870991..e3dcceb 100644 --- a/blueprints/automation/presence_mode_reset.yaml +++ b/blueprints/automation/presence_mode_reset.yaml @@ -78,7 +78,13 @@ trigger: for: minutes: !input empty_delay -condition: +action: + - variables: + occupancy_sensors: !input occupancy_sensors + al_switch: !input adaptive_lighting_switch + mode_select: !input mode_input_select + default_mode: !input default_mode + # Ensure ALL sensors are off (room is truly empty) - condition: template value_template: >- @@ -88,13 +94,6 @@ condition: list | count == 0 }} -action: - - variables: - occupancy_sensors: !input occupancy_sensors - al_switch: !input adaptive_lighting_switch - mode_select: !input mode_input_select - default_mode: !input default_mode - # Reset manual control if AL switch provided - if: - condition: template