Skip to content

RoborockApiClient cannot find newly created account – Error from Home Assistant Integration #485

@deconstructionalism

Description

@deconstructionalism

Yesterday, I created a new Roborock account (new household account) via the app and have transferred our QV 35S to it. I am doing this to consolidate various smart device apps onto a single household email account for ease of portability, instead of having them linked to my personal email on a previous account (personal email account). The personal email account was set up months ago and allows me to connect it to Home Assistant, which uses python-roborock to connect to Roborock devices .

The personal email account allows the logic below to work, effectively sending a code to the account email. The new household account gives an error (below). Both accounts allow login using the app as well as the commercial Roborock site, but the new household account fails to authenticate via this package.

Code

import asyncio

from roborock.web_api import RoborockApiClient

async def main():
    web_api = RoborockApiClient(username="<acount_email>")
    await web_api.request_code()
    code = input("What is the code?")
    user_data = await web_api.code_login(code)

asyncio.run(main())

Error using new household account

Traceback (most recent call last):
  File "/Users/simulacrean/test.py", line 12, in <module>
    asyncio.run(main())
  File "/Users/simulacrean/.pyenv/versions/3.10.9/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Users/simulacrean/.pyenv/versions/3.10.9/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/Users/simulacrean/test.py", line 8, in main
    await web_api.request_code()
  File "/Users/simulacrean/.pyenv/versions/3.10.9/lib/python3.10/site-packages/roborock/web_api.py", line 105, in request_code
    raise RoborockAccountDoesNotExist("Account does not exist - check your login and try again.")
roborock.exceptions.RoborockAccountDoesNotExist: Account does not exist - check your login and try again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions