home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

Intergas InComfort/Intouch Lan2RF gateway not working (fresh install) #120898

Open Hipoglos opened 6 days ago

Hipoglos commented 6 days ago

The problem

Can't install Intergas InComfort/Intouch Lan2RF gateway integration.

> Logger: homeassistant.setup
> Source: setup.py:402
> First occurred: 7:18:03 AM (1 occurrences)
> Last logged: 7:18:03 AM
> 
> Error during setup of component incomfort
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/setup.py", line 402, in _async_setup_component
>     result = await task
>              ^^^^^^^^^^
>   File "/usr/src/homeassistant/homeassistant/components/incomfort/__init__.py", line 57, in async_setup
>     heaters = incomfort_data["heaters"] = list(await client.heaters())
>                                                ^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/local/lib/python3.12/site-packages/incomfortclient/__init__.py", line 193, in heaters
>     heaters = dict(await self._get("heaterlist.json"))[HEATERLIST]
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/local/lib/python3.12/site-packages/incomfortclient/__init__.py", line 148, in _get
>     response = await resp.json(content_type=None)
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 79, in json
>     return await super().json(*args, loads=loads, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1192, in json
>     return loads(stripped.decode(encoding))
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 22: invalid continuation byte

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Intergas InComfort/Intouch Lan2RF gateway

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# Example configuration.yaml entry, newer firmware with user credentials
incomfort:
  host: 10.2.20.20

Anything in the logs that might be useful for us?

Version core-2024.6.4
Installation type   Home Assistant OS
Development false
Supervisor  true
Docker  true
User    root
Virtual environment false
Python version  3.12.2
Operating system family Linux
Operating system version    6.6.33-haos
CPU architecture    x86_64
Timezone    Europe/Amsterdam

Additional information

I can access the intergas gateway and see heater information. HA has access to the network.

Intergas Gateway information:

Timestamp: Day: 0 Hour: 7 Minute: 28 Web interface version: 1.1 Firmware version: IC3-ICN-V1.06 Build date: Oct 20 2014 00:08:00

home-assistant[bot] commented 6 days ago

Hey there @jbouwh, mind taking a look at this issue as it has been labeled with an integration (incomfort) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `incomfort` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign incomfort` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


incomfort documentation incomfort source (message by IssueLinks)

jbouwh commented 6 days ago

@Hipoglos Did you setup work in earlier versions? In HA Core 2024.7.0 this error will be handled. Form this version the incomfort integration will be set up from the UI.

It might be needed to supply a username (assuably admin) and a password. This might be intergas or the password at the bottom of youw Rf Gateway.

jbouwh commented 6 days ago

To get additional info logged you can turn on debug logging: https://www.home-assistant.io/integrations/logger/

logger:
  default: info
  logs:
    homeassistant.components.incomfort: debug
    incomfortclient: debug