Viessmann Component

You can try to find the device id here, either in the diagnostic data from the integration or in the /.config/ files. Not sure if it is stored there though.

Could it be that deviceId is zero?

"data": [
      {
        "data": [
          {
            "apiVersion": 1,
            "commands": {},
            "deviceId": "0",
            "feature": "device.serial",
            "gatewayId": "################",
            "isEnabled": true,
            "isReady": true,
            "properties": {
              "value": {
                "type": "string",
                "value": "################"
              }
            },
            "timestamp": "2024-01-21T08:41:43.664Z",
            "uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/0/features/device.serial"
          },

Unfortunately, when I try deviceId=0 I get this:

{
    "viErrorId": "|00-af399487d8bb4f2bb873d5a67d7a32fa-e4775c389ea548ee-01.62609e26_",
    "errorType": "EVEREST_ERROR",
    "message": "",
    "extendedPayload": {
        "code": "404",
        "reason": "Client does not exist"
    }
}

Iā€™ve just checked and for my heater the deviceId is 0 as well so this is normal.
Have you authenticated properly first? Is it in Postman or you do it in a different way?

OK, so perhaps I have not been authenticated properly. Thank you.
I just logged in here:
Developer Portal (viessmann.com)
And then I entered the required address in my browser:
https://api.viessmann.com/iot/v1/features/installations/{installationId}/gateways/{gatewaySerial}/devices/{deviceId}/features
This is probably wrong?
How to send my credentials correctly?

Do I need another token for that? Or the one used for HA integration can be used?

I just wanted to make sure.
Is this statement correct?
Since using HA I have limited my use of ViCare app to save on my limit. But perhaps unnecessarily?

Ah, no, this wonā€™t work. You have to use a Postman (a desktop app) - the instructions are on the vicare repo. Or you can also use a python program. Whichever would be easier for you. Postman is pretty simple.

Thanks.
Should I generate a new token, in addition to the one I already have for PyViCare, for use in Postman?

The same token should work.

OK.
Does anyone know a good place to learn the very basics of POSTMAN?
Just to be able to send this request to Viessmann API:
https://api.viessmann.com/iot/v1/features/installations/{installationId}/gateways/{gatewaySerial}/devices/{deviceId}/features

I believe the guide on pyvicare repo should be a good starting point:

Another question to those who use ViCare with InfluxDB.

It seems InfluxDB does not automatically see ā€œDHW water temperatureā€.
DHW is shown by HA very well.
Does anyone know the script to use in InfluxDB?

I believe the entity is ā€œwater_heater.vicare_water_0ā€.
Is the problem because the name does not have the word ā€œsensorā€ in front?

Just create a template sensor from it and youā€™ll get it there as well.

Using helper?
Like this?

I donā€™t know what to write in ā€œState templateā€.
Can anyone give me a hint?

Or develeper tools - states, templetes. :slight_smile:
This seems to work:
{{ state_attr(ā€˜water_heater.vicare_water_0ā€™,ā€˜current_temperatureā€™) }}
and sensor has been created.
However, I have no data from before I created the sensor. Is there a way to capture the old data and inject them into this sensor?

FLUX LANGUAGE:

from(bucket: "Baza")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "Ā°C")
  |> filter(fn: (r) => r["_field"] == "value")
  |> filter(fn: (r) => r["domain"] == "sensor")
  |> filter(fn: (r) => r["entity_id"] == "water_heater_vicare_water_0")
  |> filter(fn: (r) => r["friendly_name"] == "water_heater.vicare_water_0")
  |> filter(fn: (r) => r["source"] == "HA")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

Iā€™ve been trying to bring this Vicare addons to life for a few days now, but itā€™s not working, neither the official Viessman feature nor this Viessmann Component.
If I ask for this, this is what I get :slight_smile:

{
     "viErrorId": "req-54f5b385d5bb4975a4139d8589a81fa6",
     "statusCode": 401,
     "errorType": "UNAUTHORIZED",
     "message": "Authorization failed while trying to perform this action"

I entered here, it works, I added what I need:
https://app.developer.viessmann.com/

I also looked at this description, but I donā€™t understand what I have to do in Postman:

By clicking on this link, who gives the data, you donā€™t have a Clinetid

Vitoconnect OPTO2

So I donā€™t know where to go, I bought the boiler directly

My English is bad, sorry.
Vitodens 200-w

Itā€™s solved, I didnā€™t do anything and now it works. Maybe the Viessmann central system needs 1-2 days for the Clients to be activated or I donā€™t know :slight_smile: The point is that it works now.

1 Like

Hi there,
i have the ViCare integration running since several times, so far OK. Roughly since feb 2024 the current temparture of my heating pump is no longer available. sensor.vicare_heizung_temperatur shows always ā€œno longer availalbeā€ - any clue on that issue? Thanks JJ

@Toschi57 Can you control the Vitocal 250A through the API? I think about getting this heat pump and would like to combine it with my solar system through home assist.

Stephan

Hi,
I experience ā€œdata holesā€ with my Vitocal 200S. Is happens for warm water and the heating entity during night time reduction program. However the outside temperature continues to show updated values. Anyone experiencing the same behavior?

I have a Vitodens 100-W boiler. I use the ViCare integration and itā€™s worked pretty much flawlessly since installation. My question is about firmware updatesā€¦

The boiler is currently running v2.516.2110.507. There is very little (or, no?) information about an update thatā€™s jut become available in the iOS app. In fact, I couldnā€™t even get the existing firmware version from the app; I had to go to the boiler itself and hunt through the menus.

Iā€™m unmotivated to upgrade because everythingā€™s working and I donā€™t know what Iā€™ll get from the upgrade. I doubt there would be any issue with the boiler, but HA connectivity might suffer? If anyone has any experience or ideas, Iā€™d like to hear it. Thanks!