core: Error setting up entry ViCare for vicare
The problem
The intergration has stopped working.
Home Assistant 2022.8.6
Supervisor 2022.08.3
Operating System 8.4
Frontend 20220802.0 - latest
What version of Home Assistant Core has the issue?
2022.8.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Viessmann ViCare
Link to integration documentation on our website
https://www.home-assistant.io/integrations/vicare
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: components/vicare/__init__.py:55
First occurred: 2:34:13 am (2 occurrences)
Last logged: 9:31:00 pm
Error setting up entry ViCare for vicare
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 41, in get
self.__handle_server_error(response)
File "/usr/local/lib/python3.10/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 60, in __handle_server_error
raise PyViCareInternalServerError(response)
PyViCare.PyViCareUtils.PyViCareInternalServerError: (PyViCareInternalServerError(...), 'Request failed with status code 500 and message "Internal server error". ViCare ErrorId: req-d65404e2215c405ebe26a23cd19965b1')
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
Can you please try to delete the locally saved token via
rm /config/.storage/vicare_token.saveand restart HA or re-configure the integration?
@Figo81 that’s a completely different issue. Please don’t reuse tickets for this.
In your case it seems like no device is available on the API. Please check if you’re actually exposing something
Only re-configure was not sufficient, it was giving unknown error during setup (can not pass the configure window). Deleting token file was needed. After that re-configure was successful. Thanx for help