-
-
Notifications
You must be signed in to change notification settings - Fork 252
/
demo_config.yaml
475 lines (475 loc) · 13.6 KB
/
demo_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
type: custom:xiaomi-vacuum-map-card
title: Xiaomi Vacuum Map Card
preset_name: Live map
entity: vacuum.xiaomi_vacuum
map_source:
camera: camera.xiaomi_cloud_map_extractor
calibration_source:
camera: true
map_modes:
- template: vacuum_clean_zone
- template: vacuum_clean_zone_predefined
predefined_selections:
- zones: [[ 21485, 28767, 24236, 32131 ], [ 23217, 27379, 24216, 28737 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- zones: [[ 27782, 27563, 29678, 29369 ]]
label:
text: "Kitchen"
x: 28760
y: 28403
offset_y: 35
icon:
name: "mdi:pot-mix"
x: 28760
y: 28403
- template: vacuum_clean_segment
predefined_selections:
- id: 1
outline: [[ 21458, 32131 ], [ 24235, 32152 ], [ 24194, 27409 ], [ 23181, 27409 ], [ 23160, 28807 ], [ 21417, 28807 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- id: 2
outline: [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]]
label:
text: "Bathroom"
x: 22282
y: 26496
offset_y: 35
icon:
name: "mdi:shower"
x: 22282
y: 26496
- id: 3
outline: [[ 30417, 29895 ], [ 30694, 29895 ], [ 30694, 30338 ], [ 31358, 30319 ], [ 33221, 29194 ], [ 33055, 28954 ], [ 34715, 28087 ], [ 36172, 27350 ], [ 36153, 25966 ], [ 35969, 25911 ], [ 35969, 25155 ], [ 34217, 25155 ], [ 34180, 26151 ], [ 31671, 26169 ], [ 31653, 25173 ], [ 30343, 25173 ]]
label:
text: "Living room"
x: 33036
y: 27589
offset_y: 35
icon:
name: "mdi:television"
x: 33036
y: 27589
- template: vacuum_goto
- template: vacuum_goto_predefined
predefined_selections:
- position: [ 28006, 28036 ]
label:
text: "Emptying"
x: 28006
y: 28036
offset_y: 35
icon:
name: "mdi:broom"
x: 28006
y: 28036
- position: [ 32143, 26284 ]
label:
text: "Sofa"
x: 32143
y: 26284
offset_y: 35
icon:
name: "mdi:sofa"
x: 32143
y: 26284
- template: vacuum_follow_path
additional_presets:
- preset_name: Static image
entity: vacuum.xiaomi_vacuum
map_source:
image: "/local/map_image.png"
calibration_source:
calibration_points:
- vacuum:
x: 22633
y: 31641
map:
x: 322
y: 172
- vacuum:
x: 22633
y: 26514
map:
x: 322
y: 1342
- vacuum:
x: 34283
y: 26514
map:
x: 2993
y: 1342
map_modes:
- name: Zones
icon: mdi:select-drag
selection_type: MANUAL_RECTANGLE
max_selections: 5
repeats_type: INTERNAL
max_repeats: 5
service_call_schema:
service: vacuum.do_zones
service_data:
zones: "[[selection]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Predefined zones
icon: mdi:texture-box
selection_type: PREDEFINED_RECTANGLE
max_selections: 5
repeats_type: INTERNAL
max_repeats: 5
service_call_schema:
service: vacuum.do_zones
service_data:
zones: "[[selection]]"
repeats: "[[repeats]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- zones: [[ 21485, 28767, 24236, 32131 ], [ 23217, 27379, 24216, 28737 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- zones: [[ 27782, 27563, 29678, 29369 ]]
label:
text: "Kitchen"
x: 28760
y: 28403
offset_y: 35
icon:
name: "mdi:pot-mix"
x: 28760
y: 28403
- name: Rooms
icon: mdi:floor-plan
selection_type: ROOM
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_rooms
service_data:
rooms: "[[selection]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- id: 1
outline: [[ 21458, 32131 ], [ 24235, 32152 ], [ 24194, 27409 ], [ 23181, 27409 ], [ 23160, 28807 ], [ 21417, 28807 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- id: 2
outline: [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]]
label:
text: "Bathroom"
x: 22282
y: 26496
offset_y: 35
icon:
name: "mdi:shower"
x: 22282
y: 26496
- id: 3
outline: [[ 30417, 29895 ], [ 30694, 29895 ], [ 30694, 30338 ], [ 31358, 30319 ], [ 33221, 29194 ], [ 33055, 28954 ], [ 34715, 28087 ], [ 36172, 27350 ], [ 36153, 25966 ], [ 35969, 25911 ], [ 35969, 25155 ], [ 34217, 25155 ], [ 34180, 26151 ], [ 31671, 26169 ], [ 31653, 25173 ], [ 30343, 25173 ]]
label:
text: "Living room"
x: 33036
y: 27589
offset_y: 35
icon:
name: "mdi:television"
x: 33036
y: 27589
- name: Path
icon: mdi:map-marker-path
selection_type: MANUAL_PATH
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_path
service_data:
path: "[[selection]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Manual Point
icon: mdi:map-marker-plus
selection_type: MANUAL_POINT
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_point
service_data:
point: "[[selection]]"
point_x: "[[point_x]]"
point_y: "[[point_y]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Predefined Point
icon: mdi:map-marker
selection_type: PREDEFINED_POINT
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_point
service_data:
point: "[[selection]]"
repeats: "[[repeats]]"
point_x: "[[point_x]]"
point_y: "[[point_y]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- position: [ 28006, 28036 ]
label:
text: "Emptying"
x: 28006
y: 28036
offset_y: 35
icon:
name: "mdi:broom"
x: 28006
y: 28036
- position: [ 32143, 26284 ]
label:
text: "Sofa"
x: 32143
y: 26284
offset_y: 35
icon:
name: "mdi:sofa"
x: 32143
y: 26284
- preset_name: Image with perspective
entity: vacuum.xiaomi_vacuum
map_source:
image: "/local/map_image_perspective_crop.png"
calibration_source:
calibration_points:
- vacuum: ##494
x: 22633
y: 31641
map:
x: 995
y: 144
- vacuum:
x: 22633
y: 26514
map:
x: 603
y: 797
- vacuum:
x: 34283
y: 26514
map:
x: 2515
y: 523
- vacuum:
x: 34283
y: 31641
map:
x: 2350
y: 61
map_modes:
- name: Zones
icon: mdi:select-drag
selection_type: MANUAL_RECTANGLE
max_selections: 5
repeats_type: INTERNAL
max_repeats: 5
service_call_schema:
service: vacuum.do_zones
service_data:
zones: "[[selection]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Predefined zones
icon: mdi:texture-box
selection_type: PREDEFINED_RECTANGLE
max_selections: 5
repeats_type: INTERNAL
max_repeats: 5
service_call_schema:
service: vacuum.do_zones
service_data:
zones: "[[selection]]"
repeats: "[[repeats]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- zones: [[ 21485, 28767, 24236, 32131 ], [ 23217, 27379, 24216, 28737 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- zones: [[ 27782, 27563, 29678, 29369 ]]
label:
text: "Kitchen"
x: 28760
y: 28403
offset_y: 35
icon:
name: "mdi:pot-mix"
x: 28760
y: 28403
- zones: [[ 33914, 26472, 35355, 29940 ]]
- name: Rooms
icon: mdi:floor-plan
selection_type: ROOM
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_rooms
service_data:
rooms: "[[selection]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- id: 1
outline: [[ 21458, 32131 ], [ 24235, 32152 ], [ 24194, 27409 ], [ 23181, 27409 ], [ 23160, 28807 ], [ 21417, 28807 ]]
label:
text: "Bedroom"
x: 22932
y: 30339
offset_y: 35
icon:
name: "mdi:bed"
x: 22932
y: 30339
- id: 2
outline: [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]]
label:
text: "Bathroom"
x: 22282
y: 26496
offset_y: 35
icon:
name: "mdi:shower"
x: 22282
y: 26496
- id: 3
outline: [[ 30417, 29895 ], [ 30694, 29895 ], [ 30694, 30338 ], [ 31358, 30319 ], [ 33221, 29194 ], [ 33055, 28954 ], [ 34715, 28087 ], [ 36172, 27350 ], [ 36153, 25966 ], [ 35969, 25911 ], [ 35969, 25155 ], [ 34217, 25155 ], [ 34180, 26151 ], [ 31671, 26169 ], [ 31653, 25173 ], [ 30343, 25173 ]]
label:
text: "Living room"
x: 33036
y: 27589
offset_y: 35
icon:
name: "mdi:television"
x: 33036
y: 27589
- name: Path
icon: mdi:map-marker-path
selection_type: MANUAL_PATH
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_path
service_data:
path: "[[selection]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Manual Point
icon: mdi:map-marker-plus
selection_type: MANUAL_POINT
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_point
service_data:
point: "[[selection]]"
point_x: "[[point_x]]"
point_y: "[[point_y]]"
repeats: "[[repeats]]"
predefined: "false"
target:
entity_id: "[[entity_id]]"
- name: Predefined Point
icon: mdi:map-marker
selection_type: PREDEFINED_POINT
max_selections: 5
repeats_type: NONE
max_repeats: 5
service_call_schema:
service: vacuum.do_point
service_data:
point: "[[selection]]"
repeats: "[[repeats]]"
point_x: "[[point_x]]"
point_y: "[[point_y]]"
predefined: "true"
target:
entity_id: "[[entity_id]]"
predefined_selections:
- position: [ 28006, 28036 ]
label:
text: "Emptying"
x: 28006
y: 28036
offset_y: 35
icon:
name: "mdi:broom"
x: 28006
y: 28036
- position: [ 32143, 26284 ]
label:
text: "Sofa"
x: 32143
y: 26284
offset_y: 35
icon:
name: "mdi:sofa"
x: 32143
y: 26284