elupus / hass_nibe

Home Assistant Nibe Uplink Integration
184 stars 54 forks source link

Cooling not reflected in hvac_mode #137

Closed tomrennen closed 2 years ago

tomrennen commented 2 years ago

My BA-SVM100/6 doesn't reflect cooling in the hvac_action attribute of the s1_room entity. I've found an earlier issue that states it is supposed to say cooling for hvac_action when it's actively cooling.

This is what's shown for s1_room: Screenshot_20220615-175110_Home Assistant~2.png

Meanwhile in Nibe Uplink this is shown: Screenshot_20220615-180253_Firefox~2.png

Hopefully this is not an API limitation, just a small oversight. I could also check for compressor out < 20 to indicate cooling, but that's not very foolproof.

elupus commented 2 years ago

It should support it, but its nothing i've been able to test. https://github.com/elupus/hass_nibe/blob/7a232d730f9574afa90a49e5498f290b380fed74/climate.py#L162

I wonder if your status is "Cooling (Active)" as indicated by your screenshot.

tomrennen commented 2 years ago

It might just be! Is this coming from https://api.nibeuplink.com/api/v1/systems/{{systemId}}/status/system ? I will keep an eye on nibeuplink.com and do a manual call whenever the heatpump is cooling to check for the json response. Will post back.

elupus commented 2 years ago

Yup. Check what that endpoint report, then we can adjust the check.

elupus commented 2 years ago

Ps. You can turn on debug logging like:

nibeuplink: debug 
custom_components.nibe: debug

That should show those fields in log. It will spam log a bit though :)

tomrennen commented 2 years ago

@elupus this is the payload I receive:

[
    {
        "image": {
            "name": "ActiveCooling",
            "sizes": [
                {
                    "width": 35,
                    "height": 35,
                    "url": "/Content/Icons/Emmy/ActiveCooling_Tiny.png"
                },
                {
                    "width": 50,
                    "height": 50,
                    "url": "/Content/Icons/Emmy/ActiveCooling_Small.png"
                },
                {
                    "width": 100,
                    "height": 100,
                    "url": "/Content/Icons/Emmy/ActiveCooling_Medium.png"
                },
                {
                    "width": 150,
                    "height": 150,
                    "url": "/Content/Icons/Emmy/ActiveCooling_Large.png"
                },
                {
                    "width": 256,
                    "height": 256,
                    "url": "/Content/Icons/Emmy/ActiveCooling_256x256.png"
                }
            ]
        },
        "inlineText": "1",
        "title": "Cooling (Active)",
        "parameters": [
            {
                "parameterId": 43005,
                "name": "43005",
                "title": "degree minutes",
                "designation": "",
                "unit": "DM",
                "displayValue": "23DM",
                "rawValue": 233
            }
        ]
    }
]

So as suspected, it returns Cooling (Active). Should be an easy fix right? 🚀

frank8the9tank commented 2 years ago

I have started the cooling today for my heatpump, same problem here, cooling status is not show.

frank8the9tank commented 2 years ago

Its something that has worked before, its like its missing in the last couple of updates.

elupus commented 2 years ago

Might be that "Cooling (Active)" is a new string from the service. I will add it when i get the time.

elupus commented 2 years ago

Should be fixed in https://github.com/elupus/hass_nibe/releases/tag/1.5.1

frank8the9tank commented 2 years ago

For me this fixed it.