Viessmann Component

all logs:

Szczegóły loga (BŁĘDY)

Logger: homeassistant.setup
Source: components/vicare/init.py:80
First occurred: 19:48:49 (1 occurrences)
Last logged: 19:48:49

Error during setup of component vicare
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/urllib3/connection.py”, line 169, in _new_conn
conn = connection.create_connection(
File “/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py”, line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.9/socket.py”, line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 699, in urlopen
httplib_response = self._make_request(
File “/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 382, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 1010, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.9/site-packages/urllib3/connection.py”, line 353, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.9/site-packages/urllib3/connection.py”, line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0xb207a538>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/requests/adapters.py”, line 439, in send
resp = conn.urlopen(
File “/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 755, in urlopen
retries = retries.increment(
File “/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py”, line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.viessmann.com’, port=443): Max retries exceeded with url: /iot/v1/equipment/installations?includeGateways=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xb207a538>: Failed to establish a new connection: [Errno -3] Try again’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 249, in _async_setup_component
result = await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/vicare/init.py”, line 80, in setup
vicare_api = GazBoiler(conf[CONF_USERNAME], conf[CONF_PASSWORD], **params)
File “/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareDevice.py”, line 60, in init
self.service = ViCareCachedService(username, password, cacheDuration, client_id, token_file, circuit)
File “/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareCachedService.py”, line 8, in init
ViCareService.init(self, username, password, client_id, token_file, circuit)
File “/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareService.py”, line 77, in init
self._getInstallations()
File “/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareService.py”, line 269, in _getInstallations
self.installations = self.__get(apiURLBase+"/equipment/installations?includeGateways=true")
File “/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareService.py”, line 201, in __get
r=self.oauth.get(url).json()
File “/usr/local/lib/python3.9/site-packages/requests/sessions.py”, line 555, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py”, line 515, in request
return super(OAuth2Session, self).request(
File “/usr/local/lib/python3.9/site-packages/requests/sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.9/site-packages/requests/sessions.py”, line 655, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.9/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.viessmann.com’, port=443): Max retries exceeded with url: /iot/v1/equipment/installations?includeGateways=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xb207a538>: Failed to establish a new connection: [Errno -3] Try again’))

Hi @jelin23
Did you in some way configure the scan_interval?
Max retries exceeded points to too many requests towards the Viessmann API.
Please use the default interval of 60 seconds or higher if you don’t want to run into this problem

hey, i did not. I assume thats the issue. I only used that config, it worked then I did a power off and on and here i have an issue

vicare:
username: VICARE_EMAIL
password: VICARE_PASSWORD
client_id: VICARE_CLIENT_ID

I restart HA evevry 20 min and the problem doesnt go away

Your config looks fine. Are you using maybe some other client to the viessmann API in parallel?
They really allow only a certain limit per day.
You will know if that’s the issue if it starts working again tomorrow morning :slight_smile:

to be honest I use mainly apple homekit app and this is the way I finally integrated viessmann with homekit (via HA) and beside that I use normal Viessmann Vicare app from the app store. Btw I changed my ap key 3 times today maybe thats why hmmmm, I’ll leave it and see tomooroow :slight_smile:

as you told me, 24hrs later everything works correctly :slight_smile:

Hi there. Let me ask if the Viessmann Vitodens 050W can be integrated as Homekit controller to HA. I’m before buying a new boiler and I’m still unsure how to integrate it to avoid the cloud. Thank you for your help.

has anyone else noticed that water_heater.set_temperature is no longer working ?
There is no error in the logs, just the DHW temp doesn’t get set.
Other functions ( like setting the heating temp) , work just fine.
Any thoughts ?

Same here since update from 2021.8.0 to 2021.8.6

I’ve downgraded to 2021.8.0 (and i tried 2021.8.1 - 2021.8.2) , it remains broken.
Perhaps something was changed on the Viessmann side …?

Hi,

I‘m trying to set up ViCare. Home Assistant is running on the latest version 2021.8.6 but when I go to „Integrations“ ViCare is not showing up. Any hints on how to install the integration are highly appreciated.

Many thanks,
Holger

You set it up by following the documentation page:

I entered the information in the configuration.yaml but that gives me an error „ Setup failed for vicare: Integration failed to initialize.“

Unfortunately on the page you linked I don‘t see a button to add the integration like on other integration pages…Also when I do a search in the integrations section of HA I can‘t find Vicare…

please show your related section from the config file ?
Don’t forget to use proper code tags so we can see the yaml formatting.

Thanks for your support!

I just realized that I forgot to set the right callback URL in the Viessmann Developer Portal. Now everything works :slight_smile:

Not every integration supports setup via the integrations page yet. Unfortunately vicare is one of them. This is something we will implement in the near future.

1 Like

@crazyfx1 , sorry to tag you.
I’m wondering if you have noticed that water_heater.set_temperature has stopped wworking ?
There seem to be some related posts over at pyvicare github … ?

There was only an issue with reading the configured dhw temperature. If you have problems please create an issue there, I don’t see an open issue regarding that topic at the moment.

Someone in our discord just reported that issue, it will be fixed soon :wink:

1 Like

So after I managed to get the integration running I realized that some entities are not available (see screenshot). I hoped I could use the data from vicare to feed it into the new energy feature of HA but exactly that data is missing.

FYI, I have a fuel cell and also added that as “heating_type” in the configuration.yaml