Dear all,
I had to change my password for my Viessmann App ViCare. Ever since my login of the corresponding of the integration does not work any longer. However, I am not sure how to change the login credentials of the integration - there is nothing in the secrets.yaml or configuration.yaml. I wanted to avoid removing and reinstalling the integration to not loose the history of the entities.
Thank you for your help!
Below the detailed log in case this is helpful:
Logger: homeassistant.config_entries
Source: components/vicare/__init__.py:55
First occurred: 5. August 2022, 12:34:34 (1 occurrences)
Last logged: 5. August 2022, 12:34:34
Error setting up entry ViCare for vicare
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 39, in get
self.__handle_expired_token(response)
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 49, in __handle_expired_token
raise TokenExpiredError(response)
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired) {'viErrorId': 'req-8a05aa71f6ab44f592a483c91d8d5210', 'statusCode': 401, 'errorType': 'UNAUTHORIZED', 'message': 'Token provided in request is expired or invalid.', 'error': 'EXPIRED TOKEN'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/vicare/__init__.py", line 44, in async_setup_entry
await hass.async_add_executor_job(setup_vicare_api, hass, entry)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/vicare/__init__.py", line 66, in setup_vicare_api
vicare_api = vicare_login(hass, entry.data)
File "/usr/src/homeassistant/homeassistant/components/vicare/__init__.py", line 55, in vicare_login
vicare_api.initWithCredentials(
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCare.py", line 26, in initWithCredentials
self.initWithExternalOAuth(ViCareOAuthManager(
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCare.py", line 31, in initWithExternalOAuth
self.__loadInstallations()
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCare.py", line 43, in __loadInstallations
installations = self.oauth_manager.get(
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 44, in get
self.renewToken()
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareOAuthManager.py", line 111, in renewToken
self.replace_session(self.__create_new_session(
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareOAuthManager.py", line 71, in __create_new_session
raise PyViCareInvalidCredentialsError()
PyViCare.PyViCareUtils.PyViCareInvalidCredentialsError