Nice Btw, I was considering something: Instead of limiting the zones to 5, you could extend them with an automation. However I can’t come up with a good way to make it indefinite (infinite), or how to transfer zone data from your card to the automation.
So for now, this is my default cleaning schedule, which works out perfectly as my house is only 10 zones total. The automation sends the vacuum to do the first 5 zones, and turns on the next automation, which then does the next 5 (once the vacuum’s done) and turns itself off.
Maybe you can come up with some way to integrate this with your card, if possible?
- alias: Cleaning Schedule
trigger:
platform: time
at: 08:00:00
condition:
- condition: time
weekday:
- tue
- thu
action:
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_zoned_clean
params: [[18886,25222,26286,30672,1],
[13872,25643,18822,27343,1],
[12928,23433,13828,26983,1],
[10026,27149,15426,29649,1],
[9978,29732,15378,32532,1]]
- service: automation.turn_on
entity_id: automation.clean_next_5_zones
id: 868c183f0311496f812d5c3f4771303a
- alias: Clean next 5 zones
initial_state: 'off'
trigger:
platform: state
entity_id: vacuum.xiaomi_vacuum_cleaner
from: 'cleaning'
to: 'returning'
condition:
condition: template
value_template: "{{ state_attr('vacuum.xiaomi_vacuum_cleaner', 'battery_level') > 19 }}"
action:
- service: vacuum.pause
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
- delay: '00:00:01'
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_zoned_clean
params: [[15294,28996,18144,31296,1],
[13867,32540,19817,36890,1],
[11034,32889,13884,36939,1],
[14460,23095,19410,25645,1],
[21386,22704,25486,25154,1]]
- service: automation.turn_off
entity_id: automation.clean_next_5_zones