tonton
(Tristan)
August 1, 2022, 6:08pm
1
Hi All,
I am using a long time Incomfort, but suddenly it is not working anymore.
The following message i got in the logs:
Logger: homeassistant.setup
Source: setup.py:162
First occurred: 20:03:48 (1 occurrences)
Last logged: 20:03:48
Setup failed for incomfort: Integration failed to initialize.
Logger: homeassistant.components.incomfort
Source: components/incomfort/init .py:58
Integration: incomfort (documentation], [issues])
First occurred: 20:03:48 (1 occurrences)
Last logged: 20:03:48
Logger: homeassistant.components.incomfort
Source: components/incomfort/init .py:58
Integration: incomfort ([documentation], issues )
First occurred: 20:17:39 (1 occurrences)
Last logged: 20:17:39
Setup failed, check your configuration, message is: 404, message=‘Not found’, url=URL(‘http://192.168.178.3/protect/heaterlist.json ’)
Can someone help? And the most strange thing is i changed nothing… Please help!
Thanks a lot.
Can you open that URL in a web browser?
tonton
(Tristan)
October 3, 2022, 3:30pm
3
If i go to the URL i got the following message:
404: File not found
Use MPFS Upload to program web pages
Sorry for the late response!
If i go to http://192.168.178.3/heaterlist.json then i got some output… So i think they must change the intergration…
tonton
(Tristan)
October 4, 2022, 1:07pm
4
So i fixed the issue. There needs to be a change in the code of Home Assistant Core. (Can someone help me with that?)
I changed the following code in the file init .py in the location of the homeassistant container
/usr/local/lib/python3.10/site-packages/incomfortclient
From:
else:
self._url_base = f"http://{hostname}/protect/"
self._auth = aiohttp.BasicAuth(login=username, password=password)
TO:
else:
self._url_base = f"http://{hostname}/"
self._auth = aiohttp.BasicAuth(login=username, password=password)
Now i don’t get any error and the heater is again as entity in HA.
thoompje
(Thoompje)
October 4, 2022, 1:16pm
5
Hi @tonton
I made a report on the github, hopefully they will change the code for you in the next release:
Incomfort code change! · Issue #79594 · home-assistant/core (github.com)
kremerrob
(Kremerrob)
December 16, 2022, 9:17pm
6
Hi TonTon,
i am getting the same error as you did, i also want to change the init.py but i can’t find the location /usr/local/lib/python3.10/site-packages/incomfortclient on my HomeAssistant installation,
Also i get this error:
Logger: homeassistant.setup
Source: setup.py:273
First occurred: 22:06:29 (1 occurrences)
Last logged: 22:06:29
Setup failed for incomfort: Integration failed to initialize
Do you get an idea where file is located?
I’m running my home assistant installation on Hyper-V (don’t know if that can be the problem??)