First of all, thanks for the fantastic work, iām not so much of a programmer, so I could not do without all the great work you did.
However I have an issue with my vacuum interactive map and I cannot find what Iām doing wrong.
My configuration in as follows:
vacuum:
- platform: xiaomi_miio
host: 192.168.1.210
token: !secret vacuum_token
Name: Fred
camera:
- platform: xiaomi_cloud_map_extractor
name: "Fred vacuum camera"
host: 192.168.1.210
token: !secret vacuum_token
username: !secret vacuum_username
password: !secret vacuum_password
draw: ['all']
attributes:
- calibration_points
colors:
color_map_inside: [32, 115, 185]
color_map_outside: [255, 255, 255]
color_map_wall: [96, 96, 96]
color_map_wall_v2: [93, 109, 126]
color_grey_wall: [93, 109, 126]
color_path: [224, 224, 224]
# color_path: [147, 194, 238]
color_goto_path: [0, 255, 0]
color_predicted_path: [255, 255, 0, 0]
color_zones: [0xAD, 0xD8, 0xFF, 0x8F]
color_zones_outline: [0xAD, 0xD8, 0xFF]
color_virtual_walls: [255, 0, 0]
color_no_go_zones: [255, 33, 55, 127]
color_no_go_zones_outline: [255, 0, 0]
color_no_mop_zones: [163, 130, 211, 127]
color_no_mop_zones_outline: [163, 130, 211]
color_charger: [0x66, 0xfe, 0xda, 0x7f]
color_robo: [75, 235, 149]
color_unknown: [0, 0, 0]
color_scan: [0xDF, 0xDF, 0xDF]
room_colors:
1: [255, 204, 204]
2: [51, 205, 153]
3: [117, 136, 128]
4: [52, 152, 219]
5: [205, 97, 85]
6: [243, 156, 18]
7: [88, 214, 141]
8: [245, 176, 65]
9: [252, 212, 81]
10: [72, 201, 176]
11: [84, 153, 199]
12: [133, 193, 233]
13: [245, 176, 65]
14: [82, 190, 128]
15: [72, 201, 176]
16: [165, 105, 18]
# texts:
# - text: "Room 1"
# x: 25
# y: 25
# color: [125, 20, 213]
map_transformation:
# scale: 2
# rotate: 180
trim:
top: 20
bottom: 20
left: 10
right: 15
When I configure the map like this it works fine:
calibration_points:
- map:
x: 190
'y': 340
vacuum:
x: 25500
'y': 25500
- map:
x: 790
'y': 340
vacuum:
x: 33500
'y': 25500
- map:
x: 190
'y': 1080
vacuum:
x: 25500
'y': 16000
default_mode: zoned_cleanup
entity: vacuum.xiaomi_vacuum_cleaner
language: nl
map_image: /local/img/woonkamer.png
type: 'custom:xiaomi-vacuum-map-card'
zones: null
However when I use the camera map like this:
type: 'custom:xiaomi-vacuum-map-card'
entity: vacuum.xiaomi_vacuum_cleaner
camera_calibration: true
map_camera: camera.Fred_vacuum_camera
camera_refresh_interval: 5
language: nl
calibration_points: []
default_mode: zoned_cleanup
zones: null
the zoned cleanup does not work, the map however is fine. I must have set something wrong but do not know what. I receive an error in the log:
Logger: frontend.js.latest.202012291
Source: components/system_log/init.py:193
First occurred: 20:41:43 (3 occurrences)
Last logged: 20:41:43
http://192.168.1.10:8123/hacsfiles/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js:627:50 Uncaught TypeError: Cannot read property āconvertABā of undefined