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
777 stars 93 forks source link

room cleaning with xiaomi-vacuum-map-card does not start #283

Closed giuseppemari75 closed 10 months ago

giuseppemari75 commented 10 months ago

I'm using HA on VM with UTM, network configured in bridge mode. The HA address is 192.168.1.145 and the dreame L10 address is 192.168.1.101. I'm trying to clean one specific room using xiaomi-vacuum-map-card but I have the attached error

Really thanks in advance for help, I struggling with this since days :(

BRs Giuseppe

iScreen Shoter - 20231105101606024 home-assistant_dreame_vacuum_2023-11-05T09-19-22.952Z.log

Tasshack commented 10 months ago

I don't know why but your HA server cannot access to the https://de.api.io.mi.com/app/v2/home/rpc/639116330 or the device won't to respond it, this is why you are getting this error. Since your device and server at the same network you should disable Prefer Cloud Connection option from configuration settings. If integration does not work when you disable Prefer Cloud Connection option that means you have swiched from Dreamehome App to Mi Home App without hard resetting the device and device does not responds to the local api calls.

You can try;

giuseppemari75 commented 10 months ago

Hi, thanks. I've switched to Dreamehome app. Could you please copypaste the manual command to install manually the Beta version of this integration ? thanks a lot

Tasshack commented 10 months ago

You can install the beta via HACS too. It is preferable to use HACS for getting the updates easier. https://hacs.xyz/docs/faq/beta/

If you are not using HACS you can install/update the Beta version using this command (or just replace master with dev). wget -O - https://raw.githubusercontent.com/Tasshack/dreame-vacuum/dev/install | bash -

giuseppemari75 commented 10 months ago

Hi, thanks home-assistant.log from the log still seems to try to discover device in cloud. The beta seems has no option of "Prefer Cloud Connection" iScreen Shoter - 20231105120926653 A couple of question: a) how do I check that I've installed the beta? b) may I disable cloud also in the Beta ?

I would add that I've homeassistant in fisical ethernet ETH2 with homeassistant IP 192.168.1.145 (cable linked the MAC) and the Dreame on WiFi (another ETH, the ETH3) with IP 192.168.1.101

thanks

Tasshack commented 10 months ago

Dreamehome cloud does not have an option for local communication (this is why you cannot just switch back to Mi Home app without hard resetting the device) but instead it has an cloud mqtt server. Cloud connection required with the Dreamehome App but integration does not need to send requests contantly to the device or cloud like on Mi Home cloud and that is preferable so integration works better with Dreamehome cloud connection.

giuseppemari75 commented 10 months ago

Hi, ok I've the Dreamehome app on the mobile and it works. I guess I've the beta now installed, but again it still does not find the Dreame bot when try to clean a specific room or a zone :( iScreen Shoter - 20231105122810765

Tasshack commented 10 months ago

I have checked the log and looks like it still not working even with the Dreamehome cloud. If the app works there may be something blocking the requests on your server. Read Timeout happens when cloud or device over the cloud does not respond to the request.

Tasshack commented 10 months ago

I see that you are trying to send a command for cleaning that is for the Roborock vacuums and it is not working because of this. {"did":"639116330","id":19,"data":{"did":"639116330","id":19,"method":"app_segment_clean","params":[{"segments":[2],"repeat":1}]}}

You should be using dreame_vacuum.vacuum_clean_segment service instead of this and it should work. You can do that with selecting vacuum_platform as Tasshack/dreame-vacuum from Map Card configuration.

When you send a command or parameter that the vacuum does not expect It may crash and reboot and until reboot is complete it will became inaccessible thats why the correct messages are failing too after you send the wrong command for cleaning.

giuseppemari75 commented 10 months ago

Hi , thanks for the tips. I've added selection vacuum_platform as Tasshack/dreame-vacuum from Map Card configuration. But unfortunately still some error. Every tips is more than welcomed. Thanks a lot for your time. home-assistant_dreame_vacuum_2023-11-05T12-53-18.811Z.log

iScreen Shoter - 20231105135001250

Tasshack commented 10 months ago
giuseppemari75 commented 10 months ago

Thank you , Thank you , Thank you. Now it seems working fine.

giuseppemari75 commented 10 months ago

Good morning @Tasshack , sorry to disturb you, I would need to know if it's possible to create a script just to clean a selected zone (like in the picture), and if yes, if you could be so kind to support me on do this. Thanks again Giuseppe image

giuseppemari75 commented 10 months ago

Hello @Tasshack I've notice, that it should be possible to select "zone", but no clue where I can get the coordinates :( thanks a lot, regards Giuseppe

image

Tasshack commented 10 months ago

https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/blob/master/docs/templates/tasshackDreameVacuum.md

giuseppemari75 commented 9 months ago

Good morning @Tasshack , I've reached a good point with dreame L10 pro. THanks. I've a simple grid button for each room and it start correctly when I push the button image I would need an help to understand if I can put into the code the maximum suction level for istance for the room "Cucina". It starts now but not with the Turbo suction level, I guess I can only configure the scution level "3". The Turbo suction level should be higher than 3, I know because in other clieaning for some other reasons the robot start in Turbo. Thanks for you help.

type: grid columns: 5 square: true cards:

Tasshack commented 9 months ago

Robot ignores suction_level, water_volume and repeats parameters when Customized Cleaning is enabled. You can set those settings from each room room_x_suction_level select entity.

giuseppemari75 commented 9 months ago

hi, thanks. If mean from graphic interface (see the picture) I can just put a numer. It seems I can put just 1,2,3 as value of suction level but not "turbo". Otherwise please let me know how can I set those set for each room the room_x_suction_level . Thanks, sorry very newbie on this.

image

giuseppemari75 commented 9 months ago

@Tasshack please when you can , I would need a little bit more support on this. Thanks in advance.