Kaiterra integration issues

Hi All, I’m trying to get the Kaiterrra integration to work, but am having problems. The documentation isn’t as clear or detailed as I’d like.

I have added the following in my configuration.yaml(using my API key and Device ID) and restarted:

kaiterra:
  api_key: YOUR_API_KEY
  devices:
    - device_id: YOUR_DEVICE_ID
      type: sensedge

Can anyone decipher what I should do for next steps?

I get the following errors in the log:

Logger: homeassistant.setup
Source: setup.py:425
First occurred: 8:36:13 AM (1 occurrence)
Last logged: 8:36:13 AM

Error during setup of component kaiterra: https:///v1/batch?key=Av9a14tFhw5msXYh3pQuYaCV5TXsDXltlg7LAJdDlUvUt8JZ - Invalid redirect URL origin
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 874, in _request
    redirect_origin = parsed_redirect_url.origin()
  File "/usr/local/lib/python3.13/site-packages/yarl/_url.py", line 615, in origin
    return self._origin
           ^^^^^^^^^^^^
  File "src/propcache/_helpers_c.pyx", line 48, in propcache._helpers_c.under_cached_property.__get__
  File "/usr/local/lib/python3.13/site-packages/yarl/_url.py", line 628, in _origin
    raise ValueError("URL should be absolute")
ValueError: URL should be absolute

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 425, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/kaiterra/__init__.py", line 68, in async_setup
    await api.async_update()
  File "/usr/src/homeassistant/homeassistant/components/kaiterra/api_data.py", line 57, in async_update
    data = await self._api.get_latest_sensor_readings(self._devices)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/kaiterra_async_client/client.py", line 144, in get_latest_sensor_readings
    r = await self._do_request(
        ^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        json=requests)
        ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/kaiterra_async_client/client.py", line 199, in _do_request
    async with self._session.post(url, params=params, headers=headers, json=json, raise_for_status=True) as r:
               ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1510, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 879, in _request
    raise InvalidUrlRedirectClientError(
    ...<2 lines>...
    ) from origin_val_err
aiohttp.client_exceptions.InvalidUrlRedirectClientError: https:///v1/batch?key=Av9a14tFhw5msXYh3pQuYaCV5TXsDXltlg7LAJdDlUvUt8JZ - Invalid redirect URL origin

The integration you mention is ancient and mostly abandoned, but there’s an old issue about it in Github. Have a look and see if anything in the thread fixes it Kaiterra Integration no longer working - ValueError: URL should be absolute · Issue #91234 · home-assistant/core · GitHub

That did help, thanks! I used this link: [https://github.com/home-assistant/core/files/11211610/kaiterra.tar.gz]

It got me to where the integration will run.

1 Like