Hi Folks,
Once again I’m requesting for your help:
I’m trying to implement the zoned cleanup in JavaScript for my Xiaomi Robot v.1.
Generally the device works fine, I can do most of the commands without probleem.
Now I try to have the zoned cleanup set up, but the device does not do as intended:
What I did so far:
I figured out the correct map/coordiates. With this I can issue a Goto-Command which works fine, for example:
events.sendCommand("XiaomiRobotVacuum_ExecuteCommand",'app_goto_target[20000, 22500]');
The same command for Zone cleanup fails:
events.sendCommand("XiaomiRobotVacuum_ExecuteCommand",'app_zoned_clean[24000,22000,27500,24500,1]');
starts the device, the status changes to zone cleanup, but it then returns right away to the dock without cleaning. Any hints?
log:
2021-03-24 13:21:28.650 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'XiaomiRobotVacuum_ExecuteCommand' received command app_zoned_clean[24000, 22000, 27500, 24500, 1]
2021-03-24 13:21:28.652 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'XiaomiRobotVacuum_ExecuteCommand' predicted to become app_zoned_clean[24000, 22000, 27500, 24500, 1]
2021-03-24 13:21:28.658 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_ExecuteCommand' changed from {"result":["ok"],"id":10379} to app_zoned_clean[24000, 22000, 27500, 24500, 1]
2021-03-24 13:21:28.686 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_ExecuteCommand' changed from app_zoned_clean[24000, 22000, 27500, 24500, 1] to {"result":["ok"],"id":10541}
2021-03-24 13:21:45.740 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_State' changed from Charging to Returning Dock
2021-03-24 13:21:45.744 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_ControlVacuum' changed from dock to vacuum
2021-03-24 13:22:15.729 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_State' changed from Returning Dock to Charging
2021-03-24 13:22:15.733 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'XiaomiRobotVacuum_ControlVacuum' changed from vacuum to dock
Cheers
Peter