-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing preset in ViCare integration fails when device provides presets that are not supported by HA #128034
Comments
Hey there @CFenner, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) vicare documentation |
Can you please activate the debug logging, reproduce the issue and share the logs. |
caught it
Didn't they announce quite a few changes in their data points? I'm already wondering why I'm getting quite a few things in the ViCare app that Home Assistant does not show (return temperatures of the heating, energy consumption of the heat pump but also data about gas burner run times and its energy consumption). |
So, the first error message is about Also from the second log I do not get much information. Please go into "protocols", filter for Looks like your active preset/program is |
The App uses another API (or at least not the basic plan) to access the values. Not all values that you see there (e.g. Abgasthemperatur) are listed in the public api. But electricity and gas consumption, burner runtimes, etc. should all work in HA. |
Hello, I have the same problem and can't switch modes with HA. I can't switch anything else either, or the values reset after a short time! Best regards |
@alex1255 can you switch to debug mode, repeat the error and send the logs again? |
Hello. Yes, no problem, but I just did that ;-). Or do you mean something else? Here is the error message in the GUI: |
I would at expect at least on log output containing the word You activate the debug mode on the integration in the devices & services view. Just checking on my side, so I can show you what I mean. |
Yes, exactly in the integration! First switch it on, then switch it on, then switch it off again. Then Chrome automatically downloads the log file! That must be it, right? |
sorry for my English, here is a better version ;-) |
Yes. And the Home Assistant setting "Home" should probably be assigned "normal", not "fixed". According to my information (for controlling the heating using ModBUS) "fixed" requires additional settings and is meant to not use any intelligence but nailing the temperature to a certain value independent of other sensors (like outside temperature). If the prerequisite settings have not been made it will result in an error. And the heating behaves... strangely. |
Hi, |
Ah, I think I spotted the issue, but need to pickup my kids now... I hope I can have a look into it this evening. |
Gut
As long as we keep our fingers off the presets in Home Assistant, all is fine. It's a real low-prio bug. But I still believe, all you have to do is select a different preset. |
@home-assistant rename Changing preset in ViCare integration fails when device provides presets that are not supported by HA |
@noseshimself @alex1255 could you verify the change as my heating does not provide unsupported presets? |
OK - was genau soll ich machen? |
Du brauchst das Terminal Add-on. Im terminal gibst du den code ein:
Dann einmal neu starten und ausprobieren. Um das Ganze wieder zu entfernen, gibst du |
Sieht gut aus! Es scheint keine Fehler mehr zu geben und ich kann die Voreinstellungen schalten. Nur die Anzeige ist sehr träge in HA. Ich der ViCare App auf dem Handy zeigt es dann sofort an.... |
Du hast jetzt eine lokale Kopie der |
Ach noch was: Weißt du ob "ECO Mode" dann das selbe wie "reduced" ist? |
Ja, leider, der richtige Wert wird erst mit dem nächsten update von der API angezeigt. Hier sollten wir einen assumed state einbauen, damit erstmal das, was gerade über die API gesetzt wurde, auch sofort angezeigt wird. |
das wäre toll - ja. Auf jeden Fall verwirrt es nicht so sehr wie jetzt.... |
Da bin ich leider nicht sicher. Es sind zwei unterschiedliche modi in vicare. Ich habe erstmal die Vicare presets wie folgt auf die HA presets gemappt: comfort / comfort heating == comfort |
Perfekt! Dann kann ich mir jetzt endlich meine Timer in HA dazu basteln :-) Danke für die abschließende Info über das mapping. |
But... The ViCare app is only offering "normal", "reduced" and "fixed" for the CU401-B. "eco" will become active depending on the choice between "economical" and "ecological" (i.e. the controller will choose between gas burner and heat pump based on energy cost or efficiency). "active" seems to have something to do with "party mode". But I'd really like to know what "fixed" is intended for, "standby" seems to be a frost protection mode . Take a look yourself... config_entry-vicare-98e7148db7bf163fc7c57b56b369fe63.json And while we're at it: Why are not all of the interesting data points handed over to Home Assistant? Example: According to the config entry ViCare is reporting data about the gas burner like
but it does not show up anywhere. I guess the integration is a bit fixated of consisting of one heat source and several drains but the entire system can consist of several sources (which can be heating OR cooling or both) attached to a central controller. The CU401 consists of a gas burner, a heat pump and a hot water storage in one package. In my case an external buffer has been added, too. In theory we could add further heat exchangers like a geo-thermal heat pump that could be used to draw energy from the ground or a water to water heat pump that could get rid of excess energy when used as cooling device. I know at least one installation where this is used to cool PV elements to increase its efficiency. But I guess I have to try asking for more flexibility in a feature request... |
In general every vicare system seems to be a unicorn 🦄. By now, we just try to map the devices that are in the api by type. Hybrids are not considered. So if the api show the devices as an own unit you should see it. |
I will open a special snowflake issue for this. |
The problem
If you read out the states of climate.cu401b_s_heizung
you will find the attributes
preset_mode: home
vicare_programs: comfort, eco, fixed, normal, reduced, standby
active_vicare_program: normal
If you use the Home Assistant controls, the Vicare app or the control panel of the heating to change the mode to any other setting and try to set it back to "Home" again using Home Assistant in
you will get the pop-up
and the heating seems to be drunk until turned off and on again (seems that Viessmann's plausibility checks in their controller software are not that good either).
Bug: It seems that "normal" and "fixed" were confused.
If you really intended to use "fixed": Fixed requires (according to the controller manuals for ModBUS communication) that an additional parameter has to be set; if it remains unset "it fails". Easy observation: It does something but not what you intended it too.
What version of Home Assistant Core has the issue?
core-2024.10.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
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?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: