Error setting up Litter-Robot 4

Hi everyone,

I am new in the Home Assistant field and need some help. Thanks in advance!

I installed Home Assistant two days ago on a Raspberry Pi 4. All integrations of smart devices worked fine. Yesterday, I installed the DuckDNS add-on and configured it so that I can connect to my Home Assistant from anywhere. After the reboot, my Litter-Robot 4 didn’t load the entities. I tried to remove the device and reinstall it. Now it shows me this error:

Logger: homeassistant.config_entries
Source: components/litterrobot/hub.py:51
First occurred: 07:50:25 (1 occurrences)
Last logged: 07:50:25

Error setting up entry [email protected] for litterrobot
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/litterrobot/__init__.py", line 42, in async_setup_entry
    await hub.login(load_robots=True, subscribe_for_updates=True)
  File "/usr/src/homeassistant/homeassistant/components/litterrobot/hub.py", line 51, in login
    await self.account.connect(
  File "/usr/local/lib/python3.11/site-packages/pylitterbot/account.py", line 80, in connect
    await self.session.login(username=username, password=password)
  File "/usr/local/lib/python3.11/site-packages/pylitterbot/session.py", line 181, in login
    data = await self.post(
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pylitterbot/session.py", line 46, in post
    return await self.request("POST", path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pylitterbot/session.py", line 215, in request
    return await super().request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pylitterbot/session.py", line 82, in request
    async with self.websession.request(method, url, **kwargs) as resp:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 467, in _request
    with timer:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError

This was the change to the configuration.yaml file I had to make for DuckDNS:

http:
    ssl_certificate: /ssl/fullchain.pem
    ssl_key: /ssl/privkey.pem
    cors_allowed_origins:
        - https://google.com
        - https://www.home-assistant.io
    ip_ban_enabled: true
    login_attempts_threshold: 5
1 Like