mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-10-09 15:48:10 +00:00
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.
This commit is contained in:
@@ -37,8 +37,8 @@
|
|||||||
- wait_template: "{{ states.binary_sensor.mcu1_gpio12.state == 'on' }}"
|
- wait_template: "{{ states.binary_sensor.mcu1_gpio12.state == 'on' }}"
|
||||||
timeout: '00:05:00'
|
timeout: '00:05:00'
|
||||||
|
|
||||||
- wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}"
|
# - wait_template: "{{ states.binary_sensor.kitchen_door.state == 'on' }}"
|
||||||
timeout: '00:1:00'
|
# timeout: '00:1:00'
|
||||||
|
|
||||||
- delay: '00:01:00'
|
- delay: '00:01:00'
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
@@ -24,8 +24,8 @@
|
|||||||
value_template: "{{ trigger.event.data.entity_id is not none }}"
|
value_template: "{{ trigger.event.data.entity_id is not none }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
|
value_template: "{{ trigger.event.data.entity_id.split('.')[0] == 'light' }}"
|
||||||
- condition: template
|
# - condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.tv' }}"
|
# value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.tv' }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.couch' }}"
|
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.couch' }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.flood_2' }}"
|
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.flood_2' }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.treeflood' }}"
|
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.treeflood' }}"
|
||||||
- condition: template
|
# - condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.led' }}"
|
# value_template: "{{ trigger.event.data.entity_id.split('_')[0] != 'light.led' }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ trigger.event.data.entity_id.split('_')[1] != 'screensaver' }}"
|
value_template: "{{ trigger.event.data.entity_id.split('_')[1] != 'screensaver' }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
id: 5ea2a2b5-e3de-4acd-823c-dac3eeaa6118
|
id: 5ea2a2b5-e3de-4acd-823c-dac3eeaa6118
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: binary_sensor.kitchen_door
|
# entity_id: binary_sensor.kitchen_door
|
||||||
to: 'on'
|
# to: 'on'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.mcu1_gpio12
|
entity_id: binary_sensor.mcu1_gpio12
|
||||||
to: 'on'
|
to: 'on'
|
||||||
@@ -37,19 +37,19 @@
|
|||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
seconds: 15
|
seconds: 15
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: binary_sensor.kitchen_door
|
# entity_id: binary_sensor.kitchen_door
|
||||||
to: 'off'
|
# to: 'off'
|
||||||
for:
|
# for:
|
||||||
seconds: 15
|
# seconds: 15
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.mcu1_gpio12
|
entity_id: binary_sensor.mcu1_gpio12
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: binary_sensor.kitchen_door
|
# entity_id: binary_sensor.kitchen_door
|
||||||
state: 'off'
|
# state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.garage_hallway
|
entity_id: light.garage_hallway
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
@@ -3,6 +3,6 @@ doors:
|
|||||||
entities:
|
entities:
|
||||||
- binary_sensor.hallway_linen
|
- binary_sensor.hallway_linen
|
||||||
- binary_sensor.hallway_pantry
|
- binary_sensor.hallway_pantry
|
||||||
- binary_sensor.kitchen_door
|
# - binary_sensor.kitchen_door
|
||||||
- binary_sensor.MCU2_GPIO12 # Main Slider
|
- binary_sensor.MCU2_GPIO12 # Main Slider
|
||||||
- binary_sensor.MCU3_Light # Alarm Door
|
- binary_sensor.MCU3_Light # Alarm Door
|
||||||
|
@@ -78,3 +78,40 @@ automation:
|
|||||||
|
|
||||||
- delay: 00:20:00
|
- delay: 00:20:00
|
||||||
- event: event_did_someone_help_vacuum_loop
|
- 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: []
|
||||||
|
Reference in New Issue
Block a user