nVuln / homebridge-lg-thinq

A Homebridge plugin for controlling/monitoring LG ThinQ device via their ThinQ platform.
https://github.com/nVuln/homebridge-lg-thinq
Apache License 2.0
195 stars 49 forks source link

Added AC buttons fail to control the operation #274

Open aabdellah opened 9 months ago

aabdellah commented 9 months ago

Describe The Bug: Buttons that are added to AC like Jet Mode or Air Purify don't work when toggled from home app, but they reflect the correct status when changes from LG app. Is it possible to remove these buttons?

Model: RAC_056905

To Reproduce: Toggle any of the added switches like Jet Mode No response form AC or update from LG app Toggle Jet Mode from LG app or remote and it shows the state in home app without issues

Expected behavior: Switches to toggle the functionality

Logs:

Show the Homebridge logs here (make sure homebridge DEBUG mode is turned `on`), remove any sensitive information.

Plugin Config:

{
    "country": "",
    "language": "",
    "auth_mode": "token",
    "refresh_token": "",
    "username": "",
    "password": "",
    "devices": [
        {
            "id": "",
            "name": "Air Conditioner 2",
            "type": "AC",
            "serial_number": "",
            "ac_mode": "BOTH",
            "ac_swing_mode": "BOTH",
            "ac_temperature_sensor": true,
            "ac_fan_control": false,
            "ac_temperature_unit": "C",
            "ac_buttons": []
        },
        {
            "id": "",
            "name": "Air Conditioner 1",
            "type": "AC",
            "serial_number": "",
            "ac_mode": "BOTH",
            "ac_swing_mode": "BOTH",
            "ac_temperature_sensor": true,
            "ac_fan_control": false,
            "ac_temperature_unit": "C"
        }
    ],
    "thinq1": false,
    "refresh_interval": 60,
    "platform": "LGThinQ"
}

Screenshots:

Environment:

aabdellah commented 9 months ago

Below is the list of all the supported actions for RAC_056905_WW:

https://eic-service.lgthinq.com:46030/v1/service/devices/{deviceId}/control-sync

Air Purify ON:

{
    "command": "Set",
    "ctrlKey": "wModeCtrl",
    "dataGetList": null,
    "dataKey": null,
    "dataSetList": {
        "airState.wMode.airClean": 1
    },
    "dataValue": null
}

Air Purify OFF:

{
    "command": "Set",
    "ctrlKey": "wModeCtrl",
    "dataGetList": null,
    "dataKey": null,
    "dataSetList": {
        "airState.wMode.airClean": 0
    },
    "dataValue": null
}

Jet is not available for Auto and Fan, for Dry, it changes it too Cool automatically. Jet also sets the temperature to lowest when Cool and highest when Heat, so updating the state of the device after toggling it is recommended.

Jet ON (Cool/Dry):

{
    "command": "Set",
    "ctrlKey": "wModeCtrl",
    "dataGetList": null,
    "dataKey": null,
    "dataSetList": {
        "airState.wMode.jet": 1
    },
    "dataValue": null
}

Jet ON HEAT:

{
    "command": "Set",
    "ctrlKey": "wModeCtrl",
    "dataGetList": null,
    "dataKey": null,
    "dataSetList": {
        "airState.wMode.jet": 2
    },
    "dataValue": null
}

Jet OFF:

{
    "command": "Set",
    "ctrlKey": "wModeCtrl",
    "dataGetList": null,
    "dataKey": null,
    "dataSetList": {
        "airState.wMode.jet": 0
    },
    "dataValue": null
}

UVNano ON:

{
    "command": "Set",
    "ctrlKey": "settingInfo",
    "dataGetList": null,
    "dataKey": "airState.miscFuncState.Uvnano",
    "dataSetList": null,
    "dataValue": 1
}

UVNano OFF:

{
    "command": "Set",
    "ctrlKey": "settingInfo",
    "dataGetList": null,
    "dataKey": "airState.miscFuncState.Uvnano",
    "dataSetList": null,
    "dataValue": 0
}

Energy saving is only available for Cool and if the temperature is less than 22, it's set to 22 and minimum temperature changes from 20 to 22.

Energy Saving ON:

{
    "command": "Set",
    "ctrlKey": "settingInfo",
    "dataGetList": null,
    "dataKey": "airState.powerSave.basic",
    "dataSetList": null,
    "dataValue": 1
}

Energy Saving OFF:

{
    "command": "Set",
    "ctrlKey": "settingInfo",
    "dataGetList": null,
    "dataKey": "airState.powerSave.basic",
    "dataSetList": null,
    "dataValue": 0
}
anrtiger commented 9 months ago

How to activate this in HomeKit button ?

Maverick5269-lab commented 9 months ago

Hi,

same issue. All buttons dont work. Net mode/UV Nano etc.

Thanks

vfontes commented 4 months ago

I have the same issue too, occurs on both v1 and v2 AC units.