Vacuum improvements
clean only once a day disable alarm when vacuuming
This commit is contained in:
parent
21d113ab10
commit
39e2a4ac88
@ -23,4 +23,34 @@
|
||||
seconds: 15
|
||||
- service: vacuum.return_to_base
|
||||
entity_id: vacuum.robot_vacuum
|
||||
mode: single
|
||||
mode: single
|
||||
|
||||
- id: vacuum-finish
|
||||
alias: '[Vacuum] After cleaning'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: vacuum.robot_vacuum
|
||||
from: 'Cleaning'
|
||||
to: 'Returning to dock'
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.today_vacuumed
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
state: 'armed_night'
|
||||
sequence:
|
||||
- service: alarm_control_panel.alarm_arm_away
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
|
||||
- id: vacuum-daily-reset
|
||||
alias: '[Vacuum] Reset daily cleaning'
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '05:00:00'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.today_vacuumed
|
||||
|
@ -117,8 +117,7 @@
|
||||
- thu
|
||||
- fri
|
||||
action:
|
||||
- service: vacuum.start
|
||||
entity_id: vacuum.robot_vacuum
|
||||
- service: script.vacuum_daily
|
||||
- service: light.turn_on
|
||||
data:
|
||||
brightness_pct: 100
|
||||
|
@ -122,9 +122,7 @@ leave_home:
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
- service: script.vacuum_daily
|
||||
mode: single
|
||||
icon: mdi:home-export-outline
|
||||
|
||||
|
@ -83,3 +83,23 @@ vacuum_clean_room:
|
||||
data:
|
||||
segments: 23
|
||||
mode: single
|
||||
|
||||
vacuum_today:
|
||||
alias: Vacuum only once
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.today_vacuumed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
state: 'armed_away'
|
||||
sequence:
|
||||
- service: alarm_control_panel.alarm_arm_night
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
- service: vacuum.start
|
||||
entity_id: vacuum.robot_vacuum
|
Loading…
Reference in New Issue
Block a user