Get room map from Deebot R98

140 views
Skip to first unread message

chri...@familie-brosch.net

unread,
Feb 5, 2018, 11:46:13 AM2/5/18
to sucks-users
Hello.

sucks also works fine with a Deebot R98.

But it is possible to get the room map from the vacuum cleaner? I read the protocol.md but didn't find anything about it.

Torbjörn Axelsson

unread,
Feb 5, 2018, 12:09:46 PM2/5/18
to sucks-users
Hi,

There are examples of mapping commands in the Android app code so I believe it's possible to request this information through the XMPP protocol. We haven't tried though. I don't have a bot with mapping functionality, and I don't think William does either.

If I had an R98 I would use XMPPpeek to listen to the communication between the mobile app and the robot and try to capture all of the mapping related commands. We can then try to figure out what they mean. Instructions for configuring XMPPpeek can be found in the development documentation if you want to give that a try! https://github.com/wpietri/sucks/blob/master/developing.md

Cheers
Torbjorn

chri...@familie-brosch.net

unread,
Feb 5, 2018, 12:30:14 PM2/5/18
to sucks-users
Okay. I have no iOS or Android device but maybe i can run the app with anbox or android-x86 on VirtualBox. Furthermore i have no experiance with python. But i will try my best and let you know the results ;)

Thank you for your quick response.

chri...@familie-brosch.net

unread,
Feb 5, 2018, 6:37:46 PM2/5/18
to sucks-users
Okay, after a few python-lessons i'm not yet able to get the map from the robot, but i can order him to clean a specific area.

Changes in cli.py:

@cli.command(help='Clean specific area')
@click.argument('area')
def spotarea(area):
    return CliAction(Spotarea(mid=area))

Changes in __init.py__:
class Spotarea(VacBotCommand):
    def __init__(self, mode='spotarea', mid='0'):
        super().__init__('Clean', {'clean': {'type': self.CLEAN_MODE[mode], 'mid': mid}})

and add "spotarea': 'SpotArea'" to the CLEAN_MODE list. On the map the areas are named with A B C.... but  "mid" has to be an integer: A=0, B=1, C=2....

Btw.: XMPPpeek is a great tool ;)

Patrik roos

unread,
Feb 20, 2019, 4:39:53 AM2/20/19
to sucks-users
Did you test this any further. I'd love to have area cleaning working with hassio eventually. Just going "OK google, please hoover the kitchen floor" would be really nice.
Reply all
Reply to author
Forward
0 new messages