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.17k stars 123 forks source link

Failed to retrieve map from vacuum #541

Open hugomickael opened 4 months ago

hugomickael commented 4 months ago

Checklist

The problem

The map doesn't appear, only the message "Failed to retrieve map from vacuum" and "Invalid calibration, please check your configuration".

Here is the card configuration:

type: custom:xiaomi-vacuum-map-card title: Xiaomi Vacuum Map Card preset_name: Live map entity: vacuum.ramiro map_source: camera: camera.my_camera calibration_source: camera: true vacuum_platform: default

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?

rockrobo.vacuum.v1

What version of Home Assistant do you use?

2024.7.2

What type of installation are you running?

Home Assistant Container

Camera's configuration

- platform: xiaomi_cloud_map_extractor
  host: 192.168.1.91
  token: !secret token
  username: !secret email
  password: !secret xiaomi_password
  name: "My Camera"
  country: "de"
  draw: ["all"]
  attributes:
    - calibration_points

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

Smarthome-Creator commented 4 months ago

I have exactly the same problem. Unfortunately, I do not understand the problem and do not know how it comes about. I have set up everything as described in the documentation, but unfortunately it doesn't work.

- platform: xiaomi_cloud_map_extractor
  name: Wall-E Floor plan
  host: XXX.XXX.XXX.XXX
  token: !secret 
  username: !secret 
  password: !secret 
  draw: ['all']
  attributes:
    - calibration_points

It only worked once when I set it up, since then I always get this message. What I find very strange is when I “turn on” the HA entity, I can no longer load the map in the original Xiaomi App. (“Network too slow”)

If I switch the entity “off” again in HA, the map can be loaded again in the app. I don't know what's going on.

neiker commented 4 months ago

Same here, it worked perfectly and without changing anything it started to fail. Just in case I checked that the device's IP is still the same and it hasn't changed. Same with the token

neiker commented 4 months ago

It looks like Xiaomi bans you if you perform many requests too often. I added the blueprint mentioned here to disable the polling when the vacuum is docked. Now I guess I should wait until Xiaomi decides to lift the ban

hugomickael commented 4 months ago

Ok thanks, I applied the blueprint, let's see.

vchatela commented 3 months ago

Ok thanks, I applied the blueprint, let's see.

Any updates on your unban ? I am ban too...

TrasteCC commented 2 months ago

Ok thanks, I applied the blueprint, let's see.

Hey! I'm struggling with the same problem. Just applied the blueprint.

Did you get your ban lifted? How long did it take?

Thanks

vchatela commented 2 months ago

Myself it resolved 2 days after added the removal of refresh and local storage. I had contacted roborock support at same time but there were useless in solving this.

TrasteCC commented 2 months ago

Myself it resolved 2 days after added the removal of refresh and local storage. I had contacted roborock support at same time but there were useless in solving this.

Thanks! I'll wait :-)

neiker commented 2 months ago

In my case, they lift the ban after 24 hours. But they don't disclose the duration or if it's longer in case of a repeat "offense"

Smandurlo commented 2 months ago

I have the same problem, but I have my camera off when it is docked since the very first time I used this custom component, so this is not the problem. Any idea?

obsthaendler91 commented 2 weeks ago

i have the same issue, i try the blueprint and come back later

obsthaendler91 commented 1 week ago

in my case: configuration.yaml edit "auto_update: true" to false i use the blueprint: https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/blob/master/blueprints/automation/disable_vacuum_camera_update_when_docked.yaml

this works for me.

ireun commented 4 days ago

I use PiotrMachowski/update_map_extractor.yaml but it seems to work only when docked.. Otherwise the map does not update at all.. Xiaomi Vacuum here, rockrobo.vacuum.v1

Blueprint settings:

alias: Update Map Extractor camera 
description: ""
use_blueprint:
  path: PiotrMachowski/update_map_extractor.yaml
  input:
    vacuum: vacuum.rockrobo_v1_a259_robot_cleaner
    camera: camera.gorgie
    mode_to_handle: two_intervals
    interval_docked: 3600

Camera:

camera:
  - platform: xiaomi_cloud_map_extractor
    name: Gorgie
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token_gorgie
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    country: "de"
    draw: ["all"]
    auto_update: false
    attributes:
      - calibration_points