WindHager integration

thanks a lot!

I’ll try. I’m also without any knowledge about python, so it is hard for me to “read” the code. But what I forgot to mention is I’m using a MultiWin+. How do you read the configuration? I’ve 3 heating circuits. maybe they using different numbers one is at 0/26/…

I realized how tight your integration with the BiOWin system is. Cloud you provide me your OID’s. So I can compare them with mine and change the code, to support my MultiWin+.
I tested you updated code, but do have the same errors.

I read OIDs from the BioWin’s HTTP interface. The fetch_all() method in client.py is in charge of scanning the bus to read everything on it. It then determine devices based on “fctType” :

  • 14 = Climate Control
  • 9 = Heater

I have only 1 Heater (BioWin 2) and 1 Climate Control. Adding logs in the fetch_all() function can help displaying what’s on the bus, and what are the “fctType”.

You can do it by hand with cURL with something like this :

curl “http:///api/1.0/lookup/1” --digest -u USER:{pass}

I think you can safely post the JSON here so we’ll try to find out how to improve the plugin :slight_smile:

this is what I get back!

[
{
“FE01msg”: “PCM 14 OK”,
“functions”: [
{
“fctId”: 0,
“fctType”: 14,
“lock”: false,
“name”: “UML FBH”
}
],
“name”: “UML FBH”,
“neuronId”: “07000ab0d701”,
“nodeId”: 16,
“programId”: “9001001c010a0532”,
“subnet”: 1
},
{
“FE01msg”: “PCM 14 OK”,
“functions”: [
{
“fctId”: 0,
“fctType”: 14,
“lock”: false,
“name”: “UML HK1”
}
],
“name”: “UML HK1”,
“neuronId”: “07000ad5d601”,
“nodeId”: 15,
“programId”: “9001001c010a0532”,
“subnet”: 1
},
{
“functions”: [
{
“fctId”: 0,
“fctType”: 15,
“lock”: false,
“name”: “WVF”
}
],
“name”: “WVF”,
“neuronId”: “002158753400”,
“nodeId”: 20,
“programId”: “9001001c030a0503”,
“subnet”: 1
},
{
“name”: “MB6130”,
“neuronId”: “07000b5e8e01”,
“nodeId”: 96,
“programId”: “9001001a020a0532”,
“subnet”: 1
}
]

this seems very similar to what you request in your code, function is availible…do not see a reason it does not work!

I see 2 climates control (UML FBH and UML HK1). They should popup into HA.
I don’t know what is “WVF” (function = 15 ?). Maybe it’s your MultiWin+ heater ?

You can explore the OIDs by change de prefix in the query :

Example for the WVF node :
curl “http:///api/1.0/lookup/1/20” --digest -u USER:{pass}

800 liter tank as buffer storage fed by solar collectors

i do get the script error immediately after adding integration to HA! so it seems to me it is a more general problem

Bildschirm­foto 2023-04-21 um 14.47.36

Can you try to run the lookup on :
“/api/1.0/lookup/1/16” and “/api/1.0/lookup/1/15” ?

I think the “functions” key is missing on one (or both maybe ?)

“/api/1.0/lookup/1/16”:

{
“FE01msg”: “PCM 14 OK”,
“functions”: [
{
“fctId”: 0,
“fctType”: 14,
“lock”: false,
“name”: “UML FBH”
}
],
“name”: “UML FBH”,
“neuronId”: “07000ab0d701”,
“nodeId”: 16,
“programId”: “9001001c010a0532”,
“subnet”: 1
}

and “/api/1.0/lookup/1/15”:

{
“FE01msg”: “PCM 14 OK”,
“functions”: [
{
“fctId”: 0,
“fctType”: 14,
“lock”: false,
“name”: “UML HK1”
}
],
“name”: “UML HK1”,
“neuronId”: “07000ad5d601”,
“nodeId”: 15,
“programId”: “9001001c010a0532”,
“subnet”: 1
}

I tried a fix, can you update with the latest version ?

give me a second!
by the way I’m running my HA on Pi4+ HASOS latest version. pi4-64

seems something went wrong: {“message”:“Invalid handler specified”} when trying to add the integration

#IamNotAPythonDeveloper

I fixed it :sweat_smile:

i’m not a developer at all… :face_with_hand_over_mouth:

same problem…I’ll delete it and do a new download with HACS

error from log: error loading flor custom_components.windhager.config_flow

Hum… no line number / call stack ?

after removing and reinstalling it with HACS it works now! Thanks a lot!!!

I got 16 Entities!