Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.23k stars 2.49k forks source link

Oven not send program name #124

Closed MiguelAngelLV closed 6 months ago

MiguelAngelLV commented 6 months ago

Describe the bug When use oven from HA, only send oven code and not oven name.

With a recent update, hOn app crash when you try to see a oven programa create from HA in history program.

To Reproduce Steps to reproduce the behavior:

  1. Set a oven program from HA
  2. See error

Expected behavior Send the oven program name too

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context

Command from hOn

 {
        "SK": "xxxXxxxxxx#xxxxxXxxxxxx#1111-11-11X11:11:11.1X",
        "PK": "xxxx#xx-xxxx-1:1111111x-x1x1-1x1x-11x1-111x11xx1111#xxx#xx-xx-xx-xx-xx-xx",
        "SK_Secondary": "xxxXxxxxxx#1111-11-11X11:11:11.1X",
        "command": {
            "macAddress": "xx-xx-xx-xx-xx-xx",
            "commandName": "startProgram",
            "applianceOptions": {},
            "programName": "PROGRAMS.OV.CONVENTIONAL",  ## <--- THIS
            "ancillaryParameters": {
                "remoteActionable": "1",
                "programFamily": "[dashboard|manual]",
                "remoteVisible": "1",
                "probe": "0"
            },
            "applianceType": "OV",
            "attributes": {
                "channel": "mobileApp",
                "origin": "standardProgram"
            },
            "device": {
                "appVersion": "2.2.4",
                "deviceModel": "gauguin",
                "osVersion": "33",
                "mobileId": "111111xxx1xxxxx1",
                "mobileOs": "android"
            },
            "parameters": {
                "prTime": "13",
                "preheatStatus": "0",
                "recipeStep": "0",
                "tempSel": "220",
                "delayTime": "0",
                "prCode": "5",
                "prPosition": "1",
                "dryLevel": "0",
                "onOffStatus": "1",
                "recipeId": "NULL"
            },
            "transactionId": "xx-xx-xx-xx-xx-xx_1970-01-01T00:00:00.0Z",
            "timestamp": "1970-01-01T00:00:00.0Z"
        },
        "lastUpdate": "1970-01-01T00:00:00.0Z"
    }

Command from HA

    {
        "timestampAccepted": "1970-01-01T00:00:00.0Z",
        "timestampExecuted": "1970-01-01T00:00:00.0Z",
        "SK": "xxxXxxxxxx#xxxxxXxxxxxx#1111-11-11X11:11:11.1X",
        "PK": "xxxx#xx-xxxx-1:1111111x-x1x1-1x1x-11x1-111x11xx1111#xxx#xx-xx-xx-xx-xx-xx",
        "SK_Secondary": "xxxXxxxxxx#1111-11-11X11:11:11.1X",
        "command": {
            "macAddress": "xx-xx-xx-xx-xx-xx",
            "commandName": "startProgram",
            "applianceOptions": {},  ## <--- NO HERE
            "ancillaryParameters": {
                "remoteActionable": "1",
                "programFamily": "[dashboard|manual]",
                "remoteVisible": "1",
                "probe": "0"
            },
            "applianceType": "OV",
            "attributes": {
                "channel": "mobileApp",
                "origin": "standardProgram",
                "energyLabel": "0"
            },
            "device": {
                "appVersion": "2.3.5",
                "deviceModel": "exynos9820",
                "osVersion": 31,
                "mobileId": "1x1x1xx111111111",
                "mobileOs": "android"
            },
            "parameters": {
                "prTime": "60",
                "preheatStatus": "0",
                "recipeStep": "0",
                "tempSel": "200",
                "delayTime": "3",
                "prCode": "5",
                "prPosition": "1",
                "onOffStatus": "1",
                "recipeId": "NULL"
            },
            "transactionId": "xx-xx-xx-xx-xx-xx_1970-01-01T00:00:00.0Z",
            "timestamp": "1970-01-01T00:00:00.0Z"
        },
        "lastUpdate": "1970-01-01T00:00:00.0Z"
    }

Home Assistant Logs

ov_577.zip

Andre0512 commented 6 months ago

Hi, the program name should now be sent :slightly_smiling_face: