From 23d623531587c756c647f9a8575ff0704edd0f8a Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Sat, 13 Dec 2025 12:44:04 -0500 Subject: [PATCH] Enhance vacuum automation logging by including the current phase in logbook messages and add a new automation for tracking phase changes. This improves visibility into the vacuum's operational state. --- config/packages/vacuum.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/config/packages/vacuum.yaml b/config/packages/vacuum.yaml index eef2cf75..f85a7215 100755 --- a/config/packages/vacuum.yaml +++ b/config/packages/vacuum.yaml @@ -265,7 +265,7 @@ automation: - service: script.send_to_logbook data: topic: "VACUUM" - message: "{{ room_name }} is clean. Remaining: {{ remaining_count }}." + message: "{{ room_name }} is clean. Phase: {{ phase }}. Remaining: {{ remaining_count }}." - choose: - conditions: - condition: template @@ -335,7 +335,7 @@ automation: - service: script.send_to_logbook data: topic: "VACUUM" - message: "{{ states('sensor.l10s_vacuum_error') }} - {{ states('sensor.l10s_vacuum_current_room') }}" + message: "{{ states('sensor.l10s_vacuum_error') }} - {{ states('sensor.l10s_vacuum_current_room') }} (phase: {{ states('input_select.l10s_vacuum_phase') }})" - service: repairs.create data: @@ -389,4 +389,19 @@ automation: - service: script.send_to_logbook data: topic: "VACUUM" - message: "Vacuum error cleared." + message: "Vacuum error cleared (phase: {{ states('input_select.l10s_vacuum_phase') }})." + + - alias: "Vacuum Phase Changed" + id: 3e99c6fb-7c4a-4a9f-8f2d-9f1b9a6b4baf + mode: single + trigger: + - platform: state + entity_id: input_select.l10s_vacuum_phase + condition: + - condition: template + value_template: "{{ trigger.from_state is not none and trigger.to_state is not none }}" + action: + - service: script.send_to_logbook + data: + topic: "VACUUM" + message: "Phase changed: {{ trigger.from_state.state }} -> {{ trigger.to_state.state }}."