Skip to content

Instantly share code, notes, and snippets.

@Hypfer
Created September 14, 2021 07:33
Show Gist options
  • Save Hypfer/0b05a4b58cdfbf18b3c490b05d9f9c7b to your computer and use it in GitHub Desktop.
Save Hypfer/0b05a4b58cdfbf18b3c490b05d9f9c7b to your computer and use it in GitHub Desktop.
Automatic vacuum while away
alias: 'vacuum_cooldown: unset'
trigger:
- entity_id: input_boolean.vacuum_cooldown
for: 09:00:00
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: input_boolean.vacuum_cooldown
service: input_boolean.turn_off
alias: Vacuum while absent
trigger:
- entity_id: input_boolean.someone_present
platform: state
to: 'off'
for: '01:30:00'
condition:
- condition: and
conditions:
- condition: state
entity_id: 'input_boolean.vacuum_cooldown'
state: 'off'
- condition: state
entity_id: 'input_boolean.vacuum_while_away'
state: 'on'
- condition: time
after: '08:00:00'
before: '19:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: 'vacuum.rockrobo'
state: 'docked'
action:
- data:
entity_id: input_boolean.vacuum_cooldown
service: input_boolean.turn_on
- data:
entity_id: vacuum.rockrobo
service: vacuum.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment