Weback cloud integration: testers and help required

Changing the code to

timeout = httpx.Timeout(30.0, connect=90.0)
async with httpx.AsyncClient(timeout) as client:
            r = await client.post(AUTH_URL, json=data)      
            _LOGGER.debug(r)
            ...

Worked for me. I believe you forgot to put timout into httpx.AsyncClient(timeout)

Hi, Iā€™m glad that it worked for you! And yes, you seem to be right, in my suggestion to @nathan.tarillon I forgot to put timeout as a parameter. The default seems to be 5 seconds, maybe you guys can test what value works best? or we can just leave it at 90 secs (which is far too much I guess).

@calipee may I ask what robot model you have? so I can keep a record of the supported devices.

Iā€™m using Tesvor X500.

May I ask how to test / debug the component without restarting home assistant every time?

I think changing timeout to 90s for now would be good enough.

Hi guys,

I tried with :

timeout = httpx.Timeout(30.0, connect=90.0)
async with httpx.AsyncClient(timeout) as client:
            r = await client.post(AUTH_URL, json=data)      
            _LOGGER.debug(r)

and the app open during the startup, and it is not working, but the error seems to be shorter :

This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/weback_robot_vacuum/WebackVacuumApi.py:63
Integration: weback_robot_vacuum
First occurred: 9:43:35 AM (1 occurrences)
Last logged: 9:43:35 AM

Error during setup of component weback_robot_vacuum
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/weback_robot_vacuum/__init__.py", line 50, in async_setup
    await weback_api.login()
  File "/config/custom_components/weback_robot_vacuum/WebackVacuumApi.py", line 63, in login
    async with httpx.AsyncClient(timeout) as client:
TypeError: __init__() takes 1 positional argument but 2 were given

Hi @nathan.tarillon I think it should look like this (I added the parameter name):

t = httpx.Timeout(30.0, connect=90.0)
async with httpx.AsyncClient(timeout=t) as client:
    r = await client.post(AUTH_URL, json=data) 
    _LOGGER.debug(r)

Itā€™s working ! THANK YOU so much !

1 Like

Hi Calipee, as far as I know you need the restartā€¦
Ok, great, so Tesvor X500 added to the list.

Hi @nathan.tarillon , thank you too! and glad to know it finally worked! What robot are you using? @calipee is using Tesvor X500 and mine is ABIR XS-X6.

Hi @agustin-e I have a ABIR X6

Excellent Job!
It works. Finally I can control my Neatsvor X600 using home assistant.
Thank you a lot!

sorry for the editsā€¦ I sorted it out - cool integration.

Do you think you could maybe add the map it draws in the mobile app into home assistant as well? This would be super great!

hi @kingisch so far I couldnā€™t decode the map information received from the serverā€¦ but Iā€™d love to do itā€¦

Bunas tardes AgustĆ­n, gracias por este componente, estaba usando el anterior hasta que se rompiĆ³ y dejo de informar el estado, ahora lo tengo funcionando en una aspiradora UNNC ROBi 9, (Seguramente este es el nombre q le pone el importador de aca) antes informaba este nombre: vacuum.xs_v20_8c_ce_4e_e3_c3_69.
Muchas Gracias y saludos.

Buenos dĆ­as AgustĆ­n, sabes como utilizar el servicio Weback Robot Vacuum: Clean rectangle ? quiero utilizarlo para poder limpiar solo en una zona determinada.

PerdĆ³n, servicio: Weback Robot Vacuum: Clean rectangle

I guess this integration is completely dead?

Has anyone managed to flash Tuya on the Tesvor x500 Pro? There are some guides for it, if you google, but I havenā€™t been successful.

Hi everyone!
Thank you so much for your work, I am trying but I canā€™t get it to work, I have an Abir x6, the log always tells me:

Logger: homeassistant.setup
Source: setup.py:298
First occurred: 23:41:52 (1 occurrences)
Last logged: 23:41:52

Unable to prepare setup for platform weback_robot_vacuum.vacuum: Platform not found (cannot import name 'VacuumEntityFeature' from 'homeassistant.components.vacuum' (/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py)).'

Hi everyone!
this integration syncs the states only on integrationstart, then never.

any hints?

Edit:
i make a PR which solve it

1 Like

@Delta1977 thanks for your fix.