Closed borys-kupar closed 10 months ago
@borys-kupar can you post the integrations diagnostic information here? You can find them via a click on "..." on the device page.
What type of heating do you use? Has the integration previously provided values for the entities? The latest update also brought a change to newer API endpoints. Could be that these values are no longer provided via the free api, see also https://github.com/home-assistant/core/issues/99468#issuecomment-1803519978.
@CFenner Sure, Attaching here. config_entry-vicare-6fee036220486334ca29447631bc8404.json
I have Vitovalor_PT2, the integration worked well and statistics were provided until I upgraded to HA core-2023.11.1
https://github.com/somm15/PyViCare/commit/df4445d6c684592551c3e5b0b26c90e857e979cc changed the auto detection of devices that Vitovalor are correctly(?) detected as Fuelcells. Do you use auto detect as type?
@CFenner sorry, where can I check that?
You need to have the Terminal & SSH add-on. Run this on the command line in Terminal to print out the vicare config:
cat .storage/core.config_entries | js '.data.entries | .[] | select(.domain=="vicare")'
@CFenner
{
"entry_id": "<redacted>",
"version": 1,
"domain": "vicare",
"title": "ViCare",
"data": {
"username": "<redacted>",
"password": "<redacted>",
"client_id": "<redacted>",
"heating_type": "auto"
},
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "user",
"unique_id": null,
"disabled_by": null
},
Do you know how to use nano
? With nano .storage/core.config_entries
you can edit the file and change the heating_type
property of the config entry. Before the patch, the device would have been detected as type gas
. Is that type correct for your heater?
Having a config flow for this is surely something that should be added.
So in PyViCareGazBoiler.py
you have the function getGasConsumptionDomesticHotWaterToday
which is used by the Hot water gas consumption sensor. This one is missing for the PyViCareFuelCell.py
. So changing the type should fix it.
But would be good to open an issue https://github.com/somm15/PyViCare so that it can be fixed in the library.
@CFenner I've updated to "gas", reloaded the extension and HA, but that didn't help. But after I've reinstalled the extension, and selected "gas" the HA started pulling these values. They don't work in Energy Dashboard though, but maybe it just needs to collect some data first.
Vitovalor device is indeed a fuel cell. Thank you for the help! I'll open an issue in https://github.com/somm15/PyViCare
The problem
The following statistics are no longer provided after the recent update, instead, the error message is displayed: "This entity is no longer being provided by the vicare integration. If the entity is no longer in use, delete it in settings."
What version of Home Assistant Core has the issue?
core-2023.11.1
What was the last working version of Home Assistant Core?
core-2023.10.3
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