core: iRobot (roomba) integration fails to even configure

The problem

Please wait while iRobot Roomba and Braava is being setup will show the loading animation, and then after a bit Config flow could not be loaded will be displayed. If I click ADD INTEGRATION again, I will get a pop-up saying Please wait while the integration is being setup.

What version of Home Assistant Core has the issue?

core-2021.12.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

roomba

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roomba/

Example YAML snippet

N\A

Anything in the logs that might be useful for us?

No log messages.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 22 (3 by maintainers)

Most upvoted comments

I was getting the same errors, removed the integration and tried readding it. Auto-discovery is no longer finding it even after a core restart or even a restart of my entire VM. If I add it manually, it cannot retrieve the password automatically, and if I manually put it in I get a failed to connect message.

This is the first error I see: Logger: roombapy.remote_client Source: /usr/local/lib/python3.9/site-packages/roombapy/remote_client.py:58 First occurred: 11:20:48 AM (3 occurrences) Last logged: 11:20:48 AM

Can’t connect to 192.168.50.77, error: [Errno 111] Connection refused

followed by:

Logger: roombapy.remote_client Source: /usr/local/lib/python3.9/site-packages/roombapy/remote_client.py:63 First occurred: 11:20:48 AM (2 occurrences) Last logged: 11:25:37 AM

Unable to connect to 192.168.50.77

There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Oh. Mine is on another subnet. Does that really matter, I assumed it used the public API?

With me, it didn’t work at all when it was in another subnet without NATting the request from the subnet the iRobot was in. iRobot also doesn’t have any Internet Access so it it definitely using local control.

This integration should be removed after years of not working. HA does not support iRobot currently.

Working fine here after NATting the Traffic in the same subnet as the iRoomba is located in.

Getting a similar/same failed configuration error here. A few years ago, I had the Roomba integration successfully working via configuration.yaml, but had commented it out when we moved to a new house and am just trying to get it reconfigured now. I am using Home Assistant 2022.4.2 (Container)

Auto-discovery pops nothing up, and when I use Add Integration, I get the following error:

Config flow could not be loaded: undefined

This is the full log trace starting from hitting Add Integration:

2022-04-12 12:04:20 INFO (SyncWorker_3) [roombapy.discovery] Socket timeout
2022-04-12 12:04:31 INFO (SyncWorker_0) [roombapy.discovery] Socket timeout
2022-04-12 12:04:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 174, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 205, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 232, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/roomba/config_flow.py", line 137, in async_step_user
    devices = await _async_discover_roombas(self.hass, self.host)
  File "/usr/src/homeassistant/homeassistant/components/roomba/config_flow.py", line 328, in _async_discover_roombas
    discovered = await hass.async_add_executor_job(discovery.get_all)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/roombapy/discovery.py", line 32, in get_all
    response = self._get_response()
  File "/usr/local/lib/python3.9/site-packages/roombapy/discovery.py", line 53, in _get_response
    data = raw_response.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte

I’m getting this same error message while trying to add the iRobot Roomba and Braava integration.

Config flow could not be loaded

I already have it configured but a lot of log errors ever since the 2021.12 update … something has broken!