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
888 stars 111 forks source link

⚠️NEED ACCESS TO X40 ULTRA 🙏 #662

Closed Tasshack closed 3 months ago

Tasshack commented 3 months ago

I need access to a X40 series device to be able to fully support it's new features.

https://github.com/Tasshack/dreame-vacuum/issues/646 https://github.com/Tasshack/dreame-vacuum/issues/633

tioan commented 3 months ago

Do you need physical on-site access to an X40 or is remote access to Homeassistant + Dream app access sufficient?

Tasshack commented 3 months ago

Do you need physical on-site access to an X40 or is remote access to Homeassistant + Dream app access sufficient?

Only device sharing (without camera access) is enough for me. I won't be controlling the device but just play with the settings to understand how they are working. I can do that same thing from the app source code too but it is extremely hard without seeing the user interfaces.

tioan commented 3 months ago

I would be happy to share my X40 Ultra Complete + fixed water connection kit with you for a few days, for which I would need your Dream ID

Tasshack commented 3 months ago

I would be happy to share my X40 Ultra Complete + fixed water connection kit with you for a few days, for which I would need your Dream ID

My userid is BP428398. Thanks for your help.

apocaliss92 commented 3 months ago

I have just shared mine with you, let me know if you also need the camera feed shared

Tasshack commented 3 months ago

Got the access thanks. It's better to access multiple devices to observe effects of differently setup devices.

Apart from the CleanGenius, device settings mostly looks like a X30 but the new things they have added like round carpets and rotatable restictred areas would take more than a month to implement for me.

So, I am going to fix https://github.com/Tasshack/dreame-vacuum/issues/646 and https://github.com/Tasshack/dreame-vacuum/issues/633 also add the missing settings like Deep Cleaning on the next release but I will implement the following features on the release after;

Tasshack commented 3 months ago

Also I am sure this is not the latest fimware for this device yet because I can see much more settings are available from the app source code but currently disabled. So more features will be added to this device following months to the app when the new firmware is released.

apocaliss92 commented 3 months ago

Thank you very much! Could you also give a check if a polling behavior is required? Looks like when the water tank is empty, the mobile app asks the status to the vacuum to check if it changed, the only workaround on ha is to reload the integration

Thanks again, I can empty the tanks if you need :)

apocaliss92 commented 3 months ago

Also I am sure this is not the latest fimware for this device yet because I can see much more settings are available from the app source code but currently disabled. So more features will be added to this device following months to the app when the new firmware is released.

This looks an awesome news :D

Tasshack commented 3 months ago

Thank you very much! Could you also give a check if a polling behavior is required? Looks like when the water tank is empty, the mobile app asks the status to the vacuum to check if it changed, the only workaround on ha is to reload the integration

Thanks again, I can empty the tanks if you need :)

I think the issue is, when you dismiss the warning from the app it also clears the warning from the device but the cloud does not notice the integration about the change so it will became permanently stuck on the integration because there is no way to integration to know that is has been cleared otherwise.

I am not sure how to solve this yet because it is tricky without having a device always runs out of water that I can access to. Can you enable the info logs, create a low water situation, repeat the same steps from the app and send me the log output?

logger:
  default: warn
  logs:
    custom_components.dreame_vacuum: info
Tasshack commented 3 months ago

I am pretty sure cloud has some other mechanism to notify the app about events but that would event take more time to reverse engineer.

Tasshack commented 3 months ago

Already did the rotation by the way, wasn't too hard.

Capture

apocaliss92 commented 3 months ago

Thank you very much! Could you also give a check if a polling behavior is required? Looks like when the water tank is empty, the mobile app asks the status to the vacuum to check if it changed, the only workaround on ha is to reload the integration Thanks again, I can empty the tanks if you need :)

I think the issue is, when you dismiss the warning from the app it also clears the warning from the device but the cloud does not notice the integration about the change so it will became permanently stuck on the integration because there is no way to integration to know that is has been cleared otherwise.

I am not sure how to solve this yet because it is tricky without having a device always runs out of water that I can access to. Can you enable the info logs, create a low water situation, repeat the same steps from the app and send me the log output?

logger:
  default: warn
  logs:
    custom_components.dreame_vacuum: info

I will in around 2 hours as soon as I'm back home and post here again

apocaliss92 commented 3 months ago

Hey @Tasshack, I found some time to go through this. This is what I have done

  1. I Clean water tank completely removed (clean-water-tank-not-installed.log](https://github.com/user-attachments/files/16622151/clean-water-tank-not-installed.log)

  2. Clean water tank inserted as empty (clean-water-tank-installed-empty.log

  3. Clean water tank filled with water at maximum

During all these steps, I kept the mobile app open, every single passage was reflecting in the mobile app after 1-2 seconds (polling?). The HA integration did not notice any change during these steps image

Please let me know if I can help further on this or pick logs in a different order. Just to be sure, I did not touch any notification in the mobile app or on ha, just removed, refilled and so on, no direct interaction with both HA and app

apocaliss92 commented 3 months ago

Later today I will try to do the same with the dirty water tank, I suspect it's exactly the same behavior, the sensors inside the tanks are the same, 1 for the actualy installation and 1 to check the water level

Kolia56 commented 3 months ago

If needed I can share my device too. 4 maps are configured and the auto refilling / drainage kit is installed. BTW is this option currently supported in b16 version?

JanKraslice commented 2 months ago

Hi v2.0.0b16 contains the additions mentioned in #646 ? Thank you

Tasshack commented 2 months ago

Hi v2.0.0b16 contains the additions mentioned in #646 ? Thank you

No

apocaliss92 commented 2 months ago

@Tasshack i just encountered a low detergent case, here is a fresh log while it's shown on the app Low detergent.log