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.14k stars 121 forks source link

Failed to retrieve map from vacuum #541

Open hugomickael opened 1 month ago

hugomickael commented 1 month 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 1 month 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 1 month 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 1 month 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 1 month ago

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

vchatela commented 3 weeks ago

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

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

TrasteCC commented 2 weeks 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 weeks 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 weeks 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 weeks 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 3 days 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?