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
887 stars 110 forks source link

usage of dreame_vacuum.vacuum_remote_control_move_step #706

Closed desmondyipyc closed 2 months ago

desmondyipyc commented 2 months ago

firstly, running dreame_vacuum.vacuum_remote_control_move_step will run vacuum's cleaning mode whether it's via developer > action or my below custom joystick card

i am trying to create a joystick to control the remote function

i created a joystick, manage to move the robot however it is only able to take in 1 command at a time

which resulted in the following error if it's more than once Failed to perform the action dreame_vacuum/vacuum_remote_control_move_step. Unable to discover the device over cloud

is there a way to have a remote that works the same as the dreame app? am aware that home assistant does not support hold and release function hence my decision to create the joystick as a workaround

Tasshack commented 2 months ago

You cannot send remote_control action too often. It needs to be at least 300ms delay between commands as the App does otherwise device won't respond and you will get that error.

desmondyipyc commented 2 months ago

What about cleaning mode starting, whenever the remote command is ran, the robot will start cleaning mode before moving. Is it the expected behaviour?

Tasshack commented 2 months ago

Remote control is intended for manually cleaning the house therefore it uses the global cleaning settings while it is moving.

desmondyipyc commented 2 months ago

Is there a way to disable global cleaning for remote function?

Tasshack commented 2 months ago

If you have a vacuum that has camera streaming capability then you can use vacuum_go_to service otherwise no.

desmondyipyc commented 2 months ago

using l10s ultra, however would like to have the remote function similar to camera mode where it does not start the cleaning mode

nonetheless i have set the custom card to send command every 500ms which still trigger the error, set it to 1000ms it does not trigger the error message as often but randomly it will still trigger the error message.

Tasshack commented 2 months ago

Camera streaming needs to be active while remote controlling for robot to be disable cleaning and that is not possible via this integration. You can confirm this yourself by opening the camera from the app and sending the commands from HA while robot is streaming.