elupus / hass_nibe

Home Assistant Nibe Uplink Integration
185 stars 54 forks source link

Water Heater status not reflected correctly anymore #149

Open tomrennen opened 2 years ago

tomrennen commented 2 years ago

The accompanying water_heater entity does no longer reflect reheating of the water in my boiler. This used to be the case. For me the state would change to eco whenever it was heating water (presumably through the compressor). I no longer seem to be able to see whenever the water is being heated.

elupus commented 2 years ago

This should still work i think. But it is a hack since homeassistant water heater type is rather broken.

tomrennen commented 2 years ago

Sorry for the late reply, but this is the json data I receive from [GET] {{URI}}/systems/{{systemId}}/status/system whenever hot water is charging:

[
    {
        "image": {
            "name": "Drop",
            "sizes": [
                {
                    "width": 35,
                    "height": 35,
                    "url": "/Content/Icons/Emmy/Nibe/Drop_Tiny.png"
                },
                {
                    "width": 50,
                    "height": 50,
                    "url": "/Content/Icons/Emmy/Nibe/Drop_Small.png"
                },
                {
                    "width": 100,
                    "height": 100,
                    "url": "/Content/Icons/Emmy/Nibe/Drop_Medium.png"
                },
                {
                    "width": 150,
                    "height": 150,
                    "url": "/Content/Icons/Emmy/Nibe/Drop_Large.png"
                },
                {
                    "width": 256,
                    "height": 256,
                    "url": "/Content/Icons/Emmy/Nibe/Drop_256x256.png"
                }
            ]
        },
        "inlineText": "1",
        "title": "Hot Water",
        "parameters": [
            {
                "parameterId": 40014,
                "name": "40014",
                "title": "hot water charging",
                "designation": "BT6",
                "unit": "°C",
                "displayValue": "39.9°C",
                "rawValue": 399
            },
            {
                "parameterId": 40013,
                "name": "40013",
                "title": "hot water top",
                "designation": "BT7",
                "unit": "°C",
                "displayValue": "45.9°C",
                "rawValue": 459
            }
        ]
    },
    {
        "image": {
            "name": "Compressor",
            "sizes": [
                {
                    "width": 35,
                    "height": 35,
                    "url": "/Content/Icons/Emmy/Compressor_Tiny.png"
                },
                {
                    "width": 50,
                    "height": 50,
                    "url": "/Content/Icons/Emmy/Compressor_Small.png"
                },
                {
                    "width": 100,
                    "height": 100,
                    "url": "/Content/Icons/Emmy/Compressor_Medium.png"
                },
                {
                    "width": 150,
                    "height": 150,
                    "url": "/Content/Icons/Emmy/Compressor_Large.png"
                },
                {
                    "width": 256,
                    "height": 256,
                    "url": "/Content/Icons/Emmy/Compressor_256x256.png"
                }
            ]
        },
        "inlineText": null,
        "title": "Compressor",
        "parameters": [
            {
                "parameterId": 44069,
                "name": "44069",
                "title": "number of starts:",
                "designation": "EB101",
                "unit": "",
                "displayValue": "2362",
                "rawValue": 2362
            },
            {
                "parameterId": 44071,
                "name": "44071",
                "title": "total operating time:",
                "designation": "EB101",
                "unit": "h",
                "displayValue": "2767h",
                "rawValue": 2767
            },
            {
                "parameterId": 44073,
                "name": "44073",
                "title": "- of which hot water:",
                "designation": "EB101",
                "unit": "h",
                "displayValue": "314h",
                "rawValue": 314
            },
            {
                "parameterId": 40737,
                "name": "40737",
                "title": "- of which cooling:",
                "designation": "EB101",
                "unit": "h",
                "displayValue": "496h",
                "rawValue": 496
            },
            {
                "parameterId": 44701,
                "name": "44701",
                "title": "current compr. frequency",
                "designation": "EB101",
                "unit": "Hz",
                "displayValue": "71Hz",
                "rawValue": 717
            }
        ]
    }
]

Is this what the integration expects? Seems like it is?

elupus commented 2 years ago

Yes that looks as expected

tomrennen commented 2 years ago

@elupus I did some more digging, my heat pump supports and is currently set to smart control as Hot water comfort mode. This is not parsed in this dictionary. I am not sure how to parse this and create a PR, as it seems to be connected to https://github.com/elupus/nibeuplink too. Could you look in to it if you find some time?

For response data see:

[GET] https://api.nibeuplink.com/api/v1/systems/{{systemId}}/parameters?parameterIds=47041

[
    {
        "parameterId": 47041,
        "name": "47041",
        "title": "Hot water comfort mode",
        "designation": "",
        "unit": "",
        "displayValue": "smart control",
        "rawValue": 4
    }
]