question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iRobot (roomba) integration fails to even configure

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

3reactions
davidbrenner1commented, Jan 18, 2022

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

1reaction
zetaepyoncommented, Apr 12, 2022

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error attempting to add Roomba integration - Configuration
After rebooting both the Roomba and HA, and then letting it sit overnight, the problem resolved. It was able to successfully connect. It...
Read more >
Home Assistant iRobot Roomba Integration - YouTube
iRobot Roomba 692 Robot Vacuum (Amazon affiliate) - https://amzn.to/3sMUHJc Hello, time for another video and this time I'l show you Home ...
Read more >
Cloud and Wi-Fi Connectivity Troubleshooting Guide - iRobot
Connection Issues Troubleshooting Guide · Step 1: Reboot your mobile device. · Step 2: Reboot your robot. · Step 3:Reboot your router.
Read more >
Roomba not connecting to Wi-Fi? Here's how to fix it
1. First thing's first: Ensure your Wi-Fi network is operating correctly. Sometimes we take this troubleshooting step for granted because we're so used to...
Read more >
roomba sounds - Ristorante Liberty Sassari
Customize with iRobot OS and voice assistant* integration. ... This is another error that requires you to be on red alert as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found