From a8ed755000b88d386b88bee0de69e1f387d761bf Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Tue, 30 Sep 2025 12:11:05 -0400 Subject: [PATCH] Refactor automation configurations to comment out kitchen door triggers and conditions across multiple files.. #cleanup - Also added a schedule to flip Vacuum from Mop to Sweep for weekdays. --- config/automation/Speech/announcements.yaml | 4 +- .../System/detect_and_adjust_lights.yaml | 8 ++-- config/automation/garage_entry_light.yaml | 22 +++++------ config/group/doors.yaml | 2 +- config/packages/vacuum.yaml | 37 +++++++++++++++++++ 5 files changed, 55 insertions(+), 18 deletions(-) diff --git a/config/automation/Speech/announcements.yaml b/config/automation/Speech/announcements.yaml index 19ba173a..fa9912d2 100755 --- a/config/automation/Speech/announcements.yaml +++ b/config/automation/Speech/announcements.yaml @@ -37,8 +37,8 @@ - wait_template: "{{ states.binary_sensor.mcu1_gpio12.state == 'on' }}" timeout: '00:05:00' - - wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}" - timeout: '00:1:00' + # - wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}" + # timeout: '00:1:00' - delay: '00:01:00' - service: script.speech_engine diff --git a/config/automation/System/detect_and_adjust_lights.yaml b/config/automation/System/detect_and_adjust_lights.yaml index bd5a739d..859e23e2 100755 --- a/config/automation/System/detect_and_adjust_lights.yaml +++ b/config/automation/System/detect_and_adjust_lights.yaml @@ -24,8 +24,8 @@ value_template: "{{ trigger.event.data.entity_id is not none }}" - condition: template value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}" - - condition: template - value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.tv' }}" + # - condition: template + # value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.tv' }}" - condition: template value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.couch' }}" - condition: template @@ -34,8 +34,8 @@ value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.flood_2' }}" - condition: template value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.treeflood' }}" - - condition: template - value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.led' }}" + # - condition: template + # value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.led' }}" - condition: template value_template: "{{ trigger.event.data.entity_id.split('_')[1] != 'screensaver' }}" - condition: template diff --git a/config/automation/garage_entry_light.yaml b/config/automation/garage_entry_light.yaml index fd8c8738..7e5d6edd 100755 --- a/config/automation/garage_entry_light.yaml +++ b/config/automation/garage_entry_light.yaml @@ -9,9 +9,9 @@ id: 5ea2a2b5-e3de-4acd-823c-dac3eeaa6118 trigger: - - platform: state - entity_id: binary_sensor.kitchen_door - to: 'on' + # - platform: state + # entity_id: binary_sensor.kitchen_door + # to: 'on' - platform: state entity_id: binary_sensor.mcu1_gpio12 to: 'on' @@ -37,19 +37,19 @@ to: 'off' for: seconds: 15 - - platform: state - entity_id: binary_sensor.kitchen_door - to: 'off' - for: - seconds: 15 + # - platform: state + # entity_id: binary_sensor.kitchen_door + # to: 'off' + # for: + # seconds: 15 condition: - condition: state entity_id: binary_sensor.mcu1_gpio12 state: 'off' - - condition: state - entity_id: binary_sensor.kitchen_door - state: 'off' + # - condition: state + # entity_id: binary_sensor.kitchen_door + # state: 'off' - condition: state entity_id: light.garage_hallway state: 'on' diff --git a/config/group/doors.yaml b/config/group/doors.yaml index 6e298b4d..c6f33224 100755 --- a/config/group/doors.yaml +++ b/config/group/doors.yaml @@ -3,6 +3,6 @@ doors: entities: - binary_sensor.hallway_linen - binary_sensor.hallway_pantry - - binary_sensor.kitchen_door +# - binary_sensor.kitchen_door - binary_sensor.MCU2_GPIO12 # Main Slider - binary_sensor.MCU3_Light # Alarm Door diff --git a/config/packages/vacuum.yaml b/config/packages/vacuum.yaml index b6d5671d..d21fb7f6 100755 --- a/config/packages/vacuum.yaml +++ b/config/packages/vacuum.yaml @@ -78,3 +78,40 @@ automation: - delay: 00:20:00 - event: event_did_someone_help_vacuum_loop + + # https://www.vcloudinfo.com/click-here - For more info or contact. + + - alias: 'Set Vacuum Mode: Weekdays Sweeping, Weekends Sweeping and Mopping' + id: l10s_vacuum_mode_schedule + trigger: + - platform: time + at: '08:00:00' + condition: [] + action: + - choose: + - conditions: + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + sequence: + - service: select.select_option + target: + entity_id: select.l10s_vacuum_cleaning_mode + data: + option: sweeping + - conditions: + - condition: time + weekday: + - sat + - sun + sequence: + - service: select.select_option + target: + entity_id: select.l10s_vacuum_cleaning_mode + data: + option: sweeping_and_mopping + default: []