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

Failing to retrieve device when using a shared house #464

Open friscoMad opened 11 months ago

friscoMad commented 11 months ago

Checklist

The problem

I am trying to setup the integration and it fails with:

Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.615 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving device info, country: de Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.683 ERROR (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Failed to retrieve model Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.685 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.809 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Map name rubysc1%2F261485192%2F7 Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.809 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Unable to retrieve map, reasons: Logged in - True, map name - rubysc1%2F261485192%2F7, device retrieved - False

I am not sure but I think it is related to the device not being in my "main home" as it is associated with my gf account and I am a member of his house. I have had problems with some token extractor tools as they were not able to retrieve the token.

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?

roborock.vacuum.a08

What version of Home Assistant do you use?

2023.8.4

What type of installation are you running?

Home Assistant Core

Camera's configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    name: RoborockMap
    host: 192.168.1.143
    token: 3***2
    username: r***@gmail.com
    password: ***
    country: de
    scan_interval: 10
    draw: ['all']
    attributes:
      - calibration_points

Errors shown in the HA logs (if applicable)

Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.615 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving device info, country: de
Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.683 ERROR (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Failed to retrieve model
Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.685 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.809 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Map name rubysc1%2F261485192%2F7
Aug 25 18:51:18 DietPi Home Assistant[1362868]: 2023-08-25 18:51:18.809 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Unable to retrieve map, reasons: Logged in - True, map name - rubysc1%2F261485192%2F7, device retrieved - False

Additional information

No response