sman591 / homebridge-lg-thinq-ac

Homebridge plugin for LG ThinQ-enabled portable air conditioner
Apache License 2.0
53 stars 16 forks source link

Filter status #94

Open SepaSilva opened 3 years ago

SepaSilva commented 3 years ago

LG Air Conditioner Model AC Model: PC12SQ.NSK Model listed in the accessory's settings: RAC_056905_WW

Describe the bug All good except the filter status

Symptom check

Relevant logs If you feel there are relevant logs, please include them here. Otherwise you can remove this.

cosmo84 commented 3 years ago

I can confirm this issue

SepaSilva commented 3 years ago

No solution in sight…

biosim500 commented 2 years ago

I got the same issue, sadly. With the same language, if matter.

sman591 commented 2 years ago

@bluefangs found the solution here, which looks to be a separate API:

https://github.com/sman591/homebridge-lg-thinq-ac/issues/70#issuecomment-825746581

Thanks!

The request is hitting this endpoint: https://kic-service.lgthinq.com:56030/v1/service/devices/<>/control-sync Here is the req / resp for filter mgmt:

Request

{
    "command": "Get",
    "ctrlKey": "filterMngStateCtrl",
    "dataGetList": [
        "airState.filterMngStates.useTime",
        "airState.filterMngStates.maxTime"
    ]
}

Response

    "result": {
        "data": {
            "airState.filterMngStates.changeDate": 0.0,
            "airState.filterMngStates.maxTime": 720.0,
            "airState.filterMngStates.useTime": 55.0
        }
    },
    "resultCode": "0000"
}

I'll keep this GitHub issue open as the main ticket for tracking better filter level status. In the meantime, this is going to be omitted from the device whenever we can't parse the filter life.

biosim500 commented 2 years ago

@sman591 you sir, are a gentleman! Many thanks!