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

Add support of roborock.vacuum.a75 #461

Open eowindel opened 12 months ago

eowindel commented 12 months ago

Checklist

What vacuum model do you want to be supported?

roborock.vacuum.a75

What is its name?

Roborock Q REVO

Available APIs

Errors shown in the HA logs (if applicable)

2023-08-23 08:20:40.833 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Logging in...
2023-08-23 08:20:41.401 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Logged in
2023-08-23 08:20:41.402 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving device info, country: de
2023-08-23 08:20:41.633 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieved device model: roborock.vacuum.a75
2023-08-23 08:20:41.633 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Created device, used api: xiaomi
2023-08-23 08:20:41.633 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:20:46.738 WARNING (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Got exception while fetching the state: Unable to discover the device 192.168.0.167
2023-08-23 08:20:46.739 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:20:50.834 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds
2023-08-23 08:20:51.845 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:20:56.951 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:02.056 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:07.161 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:12.265 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:17.370 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:22.473 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:27.575 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Retrieving map name from device
2023-08-23 08:21:32.681 DEBUG (SyncWorker_5) [custom_components.xiaomi_cloud_map_extractor.camera] Unable to retrieve map, reasons: Logged in - True, map name - retry, device retrieved - True

Other info

No response

PiotrMachowski commented 12 months ago

Have you tried using force_api with other values?

eowindel commented 12 months ago

Hello, yes i have tested the fourth.

DannyFeliz commented 11 months ago

Waiting for this 🙏🏻

dawin09 commented 10 months ago

Would be nice to have Q Revo support

del13r commented 8 months ago

I spent a bit of time trying to get the map extractor working with my q revo (roborock.vacuum.a75), as the map extractor is what I previously used with my S5, only to find that there is support for the map in the native integration

https://www.home-assistant.io/integrations/roborock

IMAGE You can see all the maps within your Roborock account. Keep in mind that they are device-specific. The maps require the cloud API to communicate as the maps are seemingly stored on the cloud. If someone can figure out a way around this - contributions are always welcome

I looked at the code here https://github.com/home-assistant/core/blob/08ca3678daafaa60bc127c21d9a33df53ddc286d/homeassistant/components/roborock/image.py#L10

I found that the roborock native integration relies on the following repository for the map https://github.com/PiotrMachowski/Python-package-vacuum-map-parser-roborock

Here is an example of the map working fine with the native roborock integration which I can click on for a larger version. image

PiotrMachowski commented 8 months ago

I found that the roborock native integration relies on the following repository for the map https://github.com/PiotrMachowski/Python-package-vacuum-map-parser-roborock

Yeah, that's the reason I have created it. It is basically a coffee if Map Extractor