From 77cf3e971efc3dcb2eb01b91a2c86c7588aa9c17 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 1 Dec 2025 17:23:58 -0500 Subject: [PATCH] Refine vacuum automation conditions for improved functionality - Updated vacuum.yaml to enhance the logic for vacuum activation conditions, allowing for on-demand cleaning when the family is not home or the input boolean is activated. - Replaced the previous state condition with a template condition for better flexibility in automation triggers. --- config/packages/vacuum.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/packages/vacuum.yaml b/config/packages/vacuum.yaml index 02faecad..4c2e6f30 100755 --- a/config/packages/vacuum.yaml +++ b/config/packages/vacuum.yaml @@ -160,12 +160,12 @@ automation: entity_id: input_boolean.l10s_vacuum_on_demand to: 'on' condition: - - condition: state - entity_id: group.family - state: 'not_home' - condition: state entity_id: input_boolean.guest_mode state: 'off' + - condition: template + value_template: > + {{ is_state('input_boolean.l10s_vacuum_on_demand', 'on') or is_state('group.family', 'not_home') }} - condition: template value_template: "{{ not is_state('vacuum.l10s_vacuum', 'cleaning') }}" action: