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
74.08k stars 31.09k forks source link

intergas incomfort: InvalidHeaterList: There is no valid Heater in the heaterlist #94324

Closed WHagenauw closed 1 year ago

WHagenauw commented 1 year ago

The problem

The Incomfort integration is not working anymore after update to 2023.6.0 and 1. Did several restarts including a overall restart. This the log I get: Logger: homeassistant.setup Source: components/incomfort/init.py:56 First occurred: 00:00:19 (1 occurrences) Last logged: 00:00:19

Error during setup of component incomfort Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 283, in _async_setup_component result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/incomfort/init.py", line 56, in async_setup heaters = incomfort_data["heaters"] = list(await client.heaters()) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/incomfortclient/init.py", line 205, in heaters raise InvalidHeaterList incomfortclient.InvalidHeaterList: There is no valid Heater in the heaterlist (check the binding between the gateway and the heater)

What version of Home Assistant Core has the issue?

2023.6.1

What was the last working version of Home Assistant Core?

2023.5.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Incomfort

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @zxdavb, 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.

(message by CodeOwnersMention)


incomfort documentation incomfort source (message by IssueLinks)

WHagenauw commented 1 year ago

Hmmm, probably it takes a while to load. After a 1 or 2 hours it started working. With the .0 version I left it overnight after 3 or 4 restarts. This morning I installed the .1 version and a little bit later started working. So probably the .1 version fixed something

BeJaHome commented 1 year ago

For me not solved. Gateway is online, app (iOS) shows actual data, local ip is accessible in browser with username and password. But HA refuses to read data, i.e. shows incomfort integration (and thus all related entities) as unavailable. And gives error in config after reboot (“incomfort integration could not be setup”) My system: RPi4, HA 2023.6.1, SV 2023.06.1, OS 10.2, FE 20230608.0.

ankaboutobruni commented 1 year ago

Looks like the issue is back in the current HA. I'm getting these errors now, and the integration does not start.

Logger: homeassistant.setup
Source: components/incomfort/__init__.py:56
First occurred: 13:32:56 (1 occurrences)
Last logged: 13:32:56

Error during setup of component incomfort
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/incomfort/__init__.py", line 56, in async_setup
    heaters = incomfort_data["heaters"] = list(await client.heaters())
                                               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/incomfortclient/__init__.py", line 205, in heaters
    raise InvalidHeaterList
incomfortclient.InvalidHeaterList: There is no valid Heater in the heaterlist (check the binding between the gateway and the heater)
WHagenauw commented 1 year ago

For me the same. After a view restarts still not loading

BeJaHome commented 1 year ago

I have downgraded to HA 2023.5.4 and it works like a charm now. I skip updates for now, till I get confirmation that the problem is resolved.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/94324#issuecomment-1634244259, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6FKIMVTRQYWD7QDN6XDSITXP7ZR5ANCNFSM6AAAAAAZAJXQAU. You are receiving this because you commented.Message ID: @.***>

WHagenauw commented 1 year ago

Any news if this has been solved? This week version 8 of HA is coming out and hope this will be resolved

rDarylA commented 1 year ago

I have the exact same issue as WHagenauw - As yet none of the updates has resolved this

karsie1994 commented 1 year ago

I am experiencing the same issue... I can login via the portal with username and password but the integration is not loading.

ankaboutobruni commented 1 year ago

@zxdavb - Anything we can do to help troubleshoot this? I am happy to look into it, but I have limited coding experience. Winter is coming, so it would be great if we can resolve it before.

Anyone else with ideas what can be done?

zxdavb commented 1 year ago

The cause of this issue is well understood.

It is not caused by new versions of HA. It is simply the case that sometimes the RF gateway does not report the boiler's serial number correctly.

The immediate workaround is to restart HA until the integration works.

The permanent solution will require changing the way this integration behaves when it receives an invalid serial number.

I can do this, when I have time.

zxdavb commented 1 year ago

This is a duplicate of #89405 - closing this one