Viessmann ViCare broken - Home Assistant 2023.5.2

Hi guys,

For some reason, my Viessmann ViCare stopped working after an update or HACS installation.
I tried to reinstall and manually delete vicare_token.save under config without any luck.
Please advise

Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

Logger: homeassistant.config_entries
Source: components/vicare/init.py:82
First occurred: 10:14:02 PM (2 occurrences)
Last logged: 10:14:41 PM

Error setting up entry ViCare for vicare
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/vicare/init.py”, line 52, 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 82, in setup_vicare_api
device = vicare_api.devices[0]
IndexError: list index out of range

I m not sure if this is a problem from the version, because I have the same issue and did not change to 2023.5….

Found this on GitHub…

Try to remove
rm /config/.storage/vicare_token.save
and reload vicare integration

4 Likes

Thanks, i mentioned that that file was deleted and same issue

Thanks - this worked for me.

Thank you! It helped me too.

I still get: No devices or entities

Log:

Logger: homeassistant.config_entries
Source: components/vicare/init.py:82
First occurred: 09:01:18 (7 occurrences)
Last logged: 09:06:20

Error setting up entry ViCare for vicare
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/vicare/init.py”, line 52, in async_setup_entry
await hass.async_add_executor_job(setup_vicare_api, hass, entry)
File “/usr/local/lib/python3.11/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 82, in setup_vicare_api
device = vicare_api.devices[0]
~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range