PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.13k stars 122 forks source link

Getting error Custom element doesn't exist #470

Closed drorya1 closed 10 months ago

drorya1 commented 10 months ago

Checklist

The problem

Integration used to work but stopped working a while ago I am getting following error Custom element doesn't exist: xiaomi-vacuum-map-card. type: custom:xiaomi-vacuum-map-card map_source: camera: camera.xiaomi_cloud_map_extractor calibration_source: camera: true entity: vacuum.xiaomi_mi_robot vacuum_platform: default map_locked: true

Looking at the custome components I see the folder exists and the data is there .

What version of an integration has described problem?

V2.2.1

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

Viomi Vaccum V8 (Mi Mop Pro)

What version of Home Assistant do you use?

Home Assistant 2023.9.3

What type of installation are you running?

Home Assistant Supervised

Camera's configuration

Camera:
  - platform: xiaomi_cloud_map_extractor
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    store_map_raw: true

    colors:
      color_map_inside: [32, 115, 185]
      color_map_outside: [19, 87, 148]
      color_map_wall: [100, 196, 254]
      color_map_wall_v2: [93, 109, 126]
      color_grey_wall: [93, 109, 126]
      color_ignored_obstacle: [0, 0, 0, 127]
      color_ignored_obstacle_with_photo: [0, 0, 0, 127]
      color_obstacle: [0, 0, 0, 127]
      color_obstacle_with_photo: [0, 0, 0, 127]
      color_path: [147, 194, 238]
      color_goto_path: [0, 255, 0]
      color_predicted_path: [255, 255, 0, 0]
      color_cleaned_area: [127, 127, 127, 127]
      color_zones: [0xAD, 0xD8, 0xFF, 0x8F]
      color_zones_outline: [0xAD, 0xD8, 0xFF]
      color_virtual_walls: [255, 0, 0]
      color_new_discovered_area: [64, 64, 64]
      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_room_names: [0, 0, 0]
      color_unknown: [0, 0, 0]
      color_scan: [0xDF, 0xDF, 0xDF]
    room_colors:
      1: [240, 178, 122]
      2: [133, 193, 233]
      3: [217, 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]

    scan_interval:
      seconds: 10
    auto_update: true

Errors shown in the HA logs (if applicable)

Custom element doesn't exist: xiaomi-vacuum-map-card.
type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.xiaomi_cloud_map_extractor
calibration_source:
  camera: true
entity: vacuum.xiaomi_mi_robot
vacuum_platform: default
map_locked: true

Additional information

None

PiotrMachowski commented 10 months ago

you have to install this card to use this config https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card