Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
839 stars 103 forks source link

Vaccum position and path #434

Closed shagadeli closed 6 months ago

shagadeli commented 8 months ago

I'm using a L10s Ultra Pro Heat but unable to see its position and path on the map. (Using xiaomi vaccum card)

Is this something that has to be activated?

Version 2.0.0b12

Tasshack commented 8 months ago

You have probably selected the saved map as camera entity for the card instead of current map.

Change this from card configuration. camera_entity: camera.(vacuum_name)_map_1 -> camera_entity: camera.(vacuum_name)_map

shagadeli commented 8 months ago

Thanks for the reply. When I select the current map it does not display and shows a broken image icon. Screenshot_20240229_112628_Home Assistant

Tasshack commented 8 months ago

Can you check the logs for any possible warnings or errors?

shagadeli commented 8 months ago

There is in fact an error in the log, anything I could do to fix it?

``This error originated from a custom integration.

Logger: custom_components.dreame_vacuum.dreame.map Source: custom_components/dreame_vacuum/dreame/map.py:579 Integration: Dreame Vacuum (documentation, issues) First occurred: February 28, 2024 at 20:23:01 (105 occurrences) Last logged: 11:04:35

Request map data from cloud failed https://dreame-eu.oss-eu-central-1.aliyuncs.com/iot/tmp/000000/ali_dreame/LY549558/723085410/0?Expires=1709203846&OSSAccessKeyId=LTAI5t96WkBXXNzQrX4HtQti&Signature=qyQV%2FjkFlblx7u9W5bwLdZBmGAo%3D Request map data from cloud failed https://dreame-eu.oss-eu-central-1.aliyuncs.com/iot/tmp/000000/ali_dreame/LY549558/723085410/1?Expires=1709203853&OSSAccessKeyId=LTAI5t96WkBXXNzQrX4HtQti&Signature=xj%2BvNxMUxLkFjn2xy6Ofjx%2B8yhI%3D Request map data from cloud failed https://dreame-eu.oss-eu-central-1.aliyuncs.com/iot/tmp/000000/ali_dreame/LY549558/723085410/0?Expires=1709203860&OSSAccessKeyId=LTAI5t96WkBXXNzQrX4HtQti&Signature=b%2BfERtDmgCWgYnzypMd7C81dxig%3D Request map data from cloud failed https://dreame-eu.oss-eu-central-1.aliyuncs.com/iot/tmp/000000/ali_dreame/LY549558/723085410/1?Expires=1709203867&OSSAccessKeyId=LTAI5t96WkBXXNzQrX4HtQti&Signature=9U%2B1G7cVWd2sY5il6pd9N3%2BdMNM%3D Request map data from cloud failed https://dreame-eu.oss-eu-central-1.aliyuncs.com/iot/tmp/000000/ali_dreame/LY549558/723085410/0?Expires=1709206475&OSSAccessKeyId=LTAI5t96WkBXXNzQrX4HtQti&Signature=6DA1nnSeZU5EWtbJfCEoRok6QQ0%3D``

Tasshack commented 8 months ago

Integration cannot get the map data from cloud for some reason but server is definitely returning something. If the App works fine then integration should too but there may be something blocking the request also using some VPN can cause this too. If HA restart won't fix your issue you can try to remove the integration and add it again also the device too.

shagadeli commented 8 months ago

Did the following:

Same result, I've deleted and added the card again but without success. Tried different servers, I believe only EU and US found the device, but same on both. I'd like to add that the broken image icon appears to be constantly refreshing, as its flashing periodically.

I can use the robot just fine from HA, the live map appears to be the only issue.

I'm using NGINX and Duckdns on my HA, not sure if it could have something to do. HA is installed on haos on a dedicated pc (intel nuc)

Tasshack commented 8 months ago

Did the following:

  • Restart of HA
  • Delete the integration on devices
  • Deleted the integration from HACS
  • Reinstalled the integration from HACS
  • Restarted
  • Added the integration Same result, I've deleted and added the card again but without success. Tried different servers, I believe only EU and US found the device, but same on both.

If those did not fixed the issue I don't have any other clue why this is happening, normally saved map should not be working also but Dreame may have changed something from the api to the map data for the latest models. I can investigate more if you accept to give me access to your device over my Dreame account temporarly.

I'd like to add that the broken image icon appears to be constantly refreshing, as its flashing periodically.

This is because of the map card trying to get the map data from the integration constantly and there is nothing integration to do for that. Without the current map data integration cannot show you the robot position or path but you can select the saved map as before just to set which rooms to clean until the issue has been fixed.

I'm using NGINX and Duckdns on my HA, not sure if it could have something to do. HA is installed on haos on a dedicated pc (intel nuc)

Those should not be an issue.

shagadeli commented 8 months ago

I can investigate more if you accept to give me access to your device over my Dreame account temporarly. Let me know your ID/email so I can share the device.

Tasshack commented 8 months ago

Thanks for the help.

UserID: BP428398

Tasshack commented 8 months ago

I have got the access and found another issue that causes map not be rendered but that can be bypassed by disabling the furniture from map objects configuration entity and you should also do that until I have fixed it on the next release.

Unfortunately I cannot reproduce the issue you are having. Integration gets map data and renders the map correctly after furniture rendering has been disabled as I mentioned above.

That means problem is either with your HA setup or the account. You can try to create another Dreame account, share the device with that account like you did with me and use that account in HA to test that.

You can also remove the device access now as the integration works fine with my setup and no longer need it.

shagadeli commented 8 months ago

Once again thank you! Removed furniture from map objects and voila!

Edit- got it how to unshare Now this may sound ridiculous, but I can't seem to find out how to unshare the device. On the sharing page, clicking on the devices just shows up a message saying that the share has been accepted, no menu or option to unshare. I know this has nothing to do with the integration, but do you happen to know how to unshare?

Tasshack commented 8 months ago

Looks like you have successfuly unshared the device because it does not appear on my device list and integration also cannot access too currently. I am leaving the issue open until the furniture issue has been fixed. I think furniture issue may have triggered the other issue that causes map data not to be retrived so you don't worry about that.

zen2 commented 7 months ago

First use of this repository for a new L20 ultra and I got the same problem. I didn't find how to "disable the furniture from map objects" in documentation. Can you show me relevant YAML please ?

Tasshack commented 6 months ago

Fixed.

https://github.com/Tasshack/dreame-vacuum/releases/tag/v2.0.0b13