panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Create low temperature mode

Open karlrank opened this issue 1 year ago • 4 comments

Some (many) panasonic heat pumps allow for a freezing protection or low temperature 8-10C mode.

This PR adds this mode optionally, but keeps the default behaviour.

Fixes #20, #85 and #92

karlrank avatar Jan 06 '24 18:01 karlrank

This looks like it has the commits from #155 in it too. Could you please re-base it?

codyc1515 avatar Jan 09 '24 20:01 codyc1515

Right you are @codyc1515 ! Changed it to only have the relevant commit.

karlrank avatar Jan 10 '24 15:01 karlrank

Adding the "Summer House" / "Freeze protection" mode isn't as easy as just allowing lower temperature. Depending on what the API return on the summerHouse property, this is done differently. I haven't had time to look in depth how the different summerHouse types work, but from what I gather from the App there are 3 different types 1, 2 and 3. And they all work slightly different.

sockless-coding avatar Jan 13 '24 15:01 sockless-coding

Fair enough, but do we have proper documentation do know how exactly summerHouse modes actually work? If there was such a thing I'd of course be happy to implement all of the modes "properly", but for now I have at least anecdotal evidence that this setting works exactly as intended for me, and therefore probably would also help some other people all while almost certainly doing no harm.

My summerHouse mode is 2. Would you like the option of enabling low-temperature mode automatically only if summerHouse mode was 2 more for example?

Full data dump from my pump for reference:

{
    "uiFlg": false,
    "groupCount": 1,
    "groupList":
    [
        {
            "groupId": 1234567,
            "groupName": "XXXXXX",
            "pairingList":
            [],
            "deviceList":
            [
                {
                    "deviceGuid": "CS-NZ25YKE+XXXXXXX",
                    "deviceType": "3",
                    "deviceName": "Summerhouse heat pump",
                    "permission": 3,
                    "temperatureUnit": 0,
                    "summerHouse": 2,
                    "nanoeStandAlone": true,
                    "autoMode": true,
                    "modeAvlList":
                    {
                        "autoMode": 1
                    },
                    "parameters":
                    {
                        "operate": 1,
                        "operationMode": 3,
                        "temperatureSet": 8,
                        "fanSpeed": 5,
                        "fanAutoMode": 1,
                        "airSwingLR": 2,
                        "airSwingUD": 1,
                        "ecoFunctionData": 0,
                        "ecoMode": 0,
                        "ecoNavi": 0,
                        "nanoe": 1,
                        "iAuto": 0,
                        "airDirection": 1,
                        "lastSettingMode": 0
                    },
                    "deviceModuleNumber": "CS-NZ25YKE",
                    "deviceHashGuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    "modelVersion": 1,
                    "coordinableFlg": true,
                    "pairedFlg": false
                }
            ]
        }
    ]
}

karlrank avatar Jan 14 '24 11:01 karlrank

This has been added as a preset

sockless-coding avatar Jun 30 '24 09:06 sockless-coding