Closed barche closed 1 month ago
Hey there @cfenner, mind taking a look at this issue as it has been labeled with an integration (vicare
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
vicare documentation vicare source (message by IssueLinks)
Unfortunately it seems the vicare_programs
are reset by the update
function (each minute or so).
@barche feel free to verify if https://github.com/home-assistant/core/pull/127128 solves the issue for you as well.
Thanks for the quick fix, I confirm this solves the issue. I still have trouble changing program sometimes, but that's something I have to debug separately, I noticed that even when sending commands directly using PyViCare the program doesn't always change.
The problem
Changing the program on my V200 heatpump from "standby" to "comfort" throws
KeyError: 'vicare_programs'
and does not change the program. Stack trace and workaround below.What version of Home Assistant Core has the issue?
core-2024.9.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
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?
Stack trace of the problem. This trace was taken on a copy of
vicare
from thedev
branch of HA, but it behaves the same on the latest release.Additional information
When repopulating
self._attributes["vicare_programs"]
just before line 300 invicare/climate.py
like this, changing the program works again:I haven't been able to figure out why
vicare_programs
didn't exist, log output verifies that it does get populated correctly ininit
, but it somehow disappears again before changing the program.