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).
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 , 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.
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.
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)).'