I’ve been using Home assistant for a while, but still not very good with creating automations.
I’d be happy if anyone could help me with the following.
Tool needs to job: Xiaomi Roborock S50
Tools I have, which can order the Roborock: Xiaomi Motion Detectors, Tracker configured on my router, which detects if my girlfriend or I’m away.
I’d like the roborock to clean the house monday, wednesday and friday, but only when both of us left the house. Don’t ask why I don’t use worktime hours simply! (9:00 am - 5:00 pm)
There is one thing I need to be prepaired. If we leave the house several times a day, I don’t want the Robo to clean the house every time. So it can clean once a day maximum.
I’d be glad if any of you could help me, or show any templates.
Cheers
I don’t get it.
I’ve tried to create fake situations in the last two days, to see if it will run, and it didn’t.
tried to exclude the causes, and it is the ‘input_boolean.cleaned_today’.
if I mask those lines, in the condition part with #, the automation runs, but with this condition it doesn’t want to.
already tried to run the ‘Robot: Reset cleaned today counter’ automation manually, to create fake state for the input boolean, but still it’s like it still doesn’t have a state.
- alias: 'Robot: Reset cleaned today counter'
initial_state: 'on'
trigger:
platform: time
at: '17:52:00'
action:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.cleaned_today
- alias: 'Robot: Robot cleanup if nobody is home'
initial_state: 'on'
trigger:
platform: time
at: '17:56:00'
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- wed
- fri
- sat
- condition: state
entity_id: group.tracker
state: home
# - condition: state
# entity_id: input_boolean.cleaned_today
# state: 'off'
action:
- service: vacuum.turn_on
entity_id: vacuum.xiaomi_vacuum_cleaner
it is 0.77, but as I said, the automation works.
I can start it manually, by triggering in front end, or do it automatically any time if I use hashtag to mask out the ‘input_boolean.cleaned_today’ condition.
it’s the boolean seems to be not working for me
still have some trouble with this.
are you sure, you’re using the Roborock S50?
I tried to dig out the ‘sensor.xiaomi_status’ you’re using, but there were no entity like this.
Tried to use ‘vacuum.xiaomi_vacuum_cleaner’ as the only entity I found, but it’s ‘Charging’ state didn’t work
So the vacuum just did it’s second round today.
tried this and worked great if nobody is home, when the set timer is, but what if want it to trigger as soon as last person leaves house?
i have set the group to include everyone, and just tried to leave out the
trigger:
- at: '12:00'
platform: time
- entity_id: group.anyone
from: home
platform: state
to: not_home
and instead have a trigger when state goes from home to not_home… but it wont trigger…