forked from PiotrMachowski/lovelace-xiaomi-vacuum-map-card
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfollow_path.yaml
More file actions
24 lines (24 loc) · 743 Bytes
/
Copy pathfollow_path.yaml
File metadata and controls
24 lines (24 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
vacuum_follow_path:
mode: single
alias: Vacuum follow path
fields:
path:
name: Path
entity_id:
name: Vacuum entity
sequence:
- repeat:
count: "{{ path | length }}"
sequence:
- service: vacuum.send_command
data:
entity_id: "{{ entity_id }}"
command: app_goto_target
params: "{{ path[repeat.index-1] }}"
- wait_template: "{{ is_state(entity_id, 'cleaning') }}"
timeout: 00:00:30
continue_on_timeout: false
- delay: 00:00:01
- wait_template: "{{ is_state(entity_id, 'idle') or is_state(entity_id, 'paused') }}"
timeout: 00:05:00
continue_on_timeout: false