Frippen
(Fredrik Sjöström)
March 23, 2017, 3:06pm
1
Hi,
I’m looking for an example how to stop my vacumcleaner when someone get home. In the best of worlds the machine should also go back to the charging station.
I have get the trigger to work but I don’t know how to write te action part of my automation.
Best regards,
Fredrik
GIBS
April 10, 2018, 8:05am
2
Did you get it to work? I’m looking for the same thing.
Frippen
(Fredrik Sjöström)
April 11, 2018, 5:39pm
3
Yes I did
This automation start the vaccumcleaner every mondg, wednesday and friday between 7-16 if noone is home for 10 minutes
- alias: 'Start cleaning if noone at home'
trigger:
- platform: state
entity_id: group.all_devices
to: 'not_home'
from: 'home'
for:
minutes: 10
condition:
- condition: time
weekday:
- mon
- wed
- fri
- condition: time
after: '07:00:00'
before: '16:00:00'
action:
service: vacuum.start_pause
entity_id: vacuum.vc
And this one stop the vc if someone went home
alias: ‘Stop cleaning if someone went home’
trigger:
platform: state
entity_id: group.all_devices
from: ‘not_home’
to: ‘home’
condition:
condition: state
entity_id: vacuum.vc
state: ‘on’
action:
service: vacuum.return_to_base
entity_id: vacuum.vc
GIBS
April 11, 2018, 7:17pm
4
Thank you for the reply. That is exactly what I’m looking for.
Now, all I have to do is getting the component to work
Kind regards. Andreas