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

Request support for LG Puricare Water Purifier #225

Open ahmadnazirafiq opened 1 year ago

ahmadnazirafiq commented 1 year ago

Hi, would love to request a support for a range of water purifiers from LG. However, the model I’m using is:

Model: WD516AN Features: dispense cold, hot and ambient water Filters: 2 self-service filters ranging every 6 months

Not sure if HomeKit actually has a water purifier module support natively. Probably can make it as water faucet? Or appearing as humidifier?

nVuln commented 1 year ago

please turn on homebridge debug mode and upload some device data, let see if I can do anything

ahmadnazirafiq commented 1 year ago

Apologies for the late response. I just got the water purifier installed yesterday. Here's the logs I've gathered, with other busy plugins omitted:

_[08/04/2023, 11:56:09] Registering platform 'homebridge-lg-thinq.LGThinQ' [08/04/2023, 11:56:09] [homebridge-lg-thinq] Loaded homebridge-lg-thinq v1.4.1 child bridge successfully [08/04/2023, 11:56:09] Loaded 0 cached accessories from cachedAccessories.0EA7D6181C8C. [08/04/2023, 11:56:09] Publishing bridge accessory (name: homebridge-lg-thinq, publishInfo: { username: '0E:A7:D6:18:1C:8C', port: 55323, pincode: '*-*-', category: 2, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: 'ciao' }). [08/04/2023, 11:56:09] [homebridge-lg-thinq] Executed didFinishLaunching callback [08/04/2023, 11:56:09] Homebridge v1.6.0 (HAP v0.11.0) (homebridge-lg-thinq) is running on port 55323. [08/04/2023, 11:56:10] [homebridge-lg-thinq] [request] get https://route.lgthinq.com:46030/v1/service/application/gateway-uri [08/04/2023, 11:56:11] [homebridge-lg-thinq] [request] post https://kic.lgthinq.com:46030/api/common/gatewayUriList [08/04/2023, 11:56:11] [homebridge-lg-thinq] [request] post https://my.lgeapi.com/oauth/1.0/oauth2/token [08/04/2023, 11:56:12] [homebridge-lg-thinq] [request] post https://kic.lgthinq.com:46030/api/member/login [08/04/2023, 11:56:12] [homebridge-lg-thinq] [request] get https://kic-service.lgthinq.com:46030/v1/service/homes [08/04/2023, 11:56:13] [homebridge-lg-thinq] [request] get https://kic-service.lgthinq.com:46030/v1/service/homes/168015320109452289 [08/04/2023, 11:56:13] [homebridge-lg-thinq] Device data: {"modelAppType":"NUTS","brandType":"common","deviceId":"ebd83e19-f1ff-1744-a0d7-1c392961cdfe","deviceType":103,"modelName":"1WPD4CIHIR__2","subModelNm":null,"sensorType":null,"alias":"Water purifier","deviceCode":"KI05","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"TYPE1","pccModelYn":"N","autoOrderYn":"N","drServiceYn":"N","ssid":"Terminal","timezoneCode":"Asia/Kuala_Lumpur","timezoneCodeAlias":"Asia/Kuala_Lumpur","sdsGuide":"{\"deviceCode\":\"KI05\"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"230440","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20230407051816000","regIndex":0,"blackboxYn":"Y","groupableYn":"N","controllableYn":"N","combinedProductYn":"N","masterYn":"Y","snapshot":{"fwUpgradeInfo":{"upgSched":{"upgUtc":"0","cmd":"none"}},"static":{"deviceType":"103","countryCode":"MY"},"wpState":{"filterFlushingState":"OFF","monDataRefresh":0,"defaultWaterAmountMode":2,"cleanMode":"OFF","tempUnit":"CELSIUS","voiceMode":"IGNORE","notUseNotice":"ON","sterilizationWaterAmount":0,"sterilizeInitMin":0,"autoElevation":"ON","defaultWaterSet":"NORMAL_WATER","cockState":"OFF","energySavingMode":"OFF","buttonSoundOnOff":"ON","voiceVolume":"60_PERCENT","waterSelection":"NORMAL_WATER","autoCareOnOff":"ON","sterilizeInitMonth":4,"waterAmountMode":5,"mineralWaterAmount":0,"normalWaterAmount":27,"amountUnit":"M_LITTER","voiceOnOff":"ON","coldWaterAmount":0,"hotWaterAmount":0,"sodaWaterAmount":0,"hotWaterTemp":255,"sterilizeInitDay":14,"sterilizeInitHour":17,"highSterilizeState":"OFF","monStatus":"NORMAL"},"meta":{"allDeviceInfoUpdate":false,"messageId":"kq5KahNJS0OBrL_Udvaf-w"},"mid":814010,"online":true,"timestamp":1680925840092},"manufacture":{"inventoryOrg":"CWZ","macAddress":"1C:39:29:61:CD:FE","manufactureModel":"WD516AN.AWHRLML","manufacturedAt":"2022-06-07T20:06:39+00:00","registeredAt":"2022-06-09T03:40:11.525370+00:00","salesModel":"WD516AN.AWHRLML","serialNo":"206KMEM05948"},"online":true,"platformType":"thinq2","homeDeviceOrder":1,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"4.4","modelJsonUri":"https://objectcontent.lgthinq.com/0ad786bc-2987-4e1a-9dee-b2b73345d870?hdnts=exp=1715151792~hmac=56c7a32d3af24c0f1cf61e57e62af59e62c93b50827325fe6339d3497055ef2e","appModuleVer":"300.31","appModuleUri":"https://objectcontent.lgthinq.com/33695688-0cb0-47ec-9489-53abc6a3fcca?hdnts=exp=1708776097~hmac=b71624661bb0419752ea23d9c280b3726e251169035d58e51c7069650111bb5a","appRestartYn":"Y","appModuleSize":"3008652","langPackProductTypeVer":"34.2","langPackProductTypeUri":"https://objectcontent.lgthinq.com/6c4a0ac3-fbd8-4728-8e51-3c9dd7bdc416?hdnts=exp=1743916619~hmac=67c2edba908e5954401ba0f91bd339f6dbe2f3c05f5ee8014bcc06569556b163","langPackModelVer":null,"langPackModelUri":null,"roomId":"168084528734473286","fwInfoList":[{"checksum":"0000896B","order":2,"partNumber":"SAA42835601"},{"checksum":"0000965F","order":1,"partNumber":"SAA42617601"}],"modemInfo":{"appVersion":"clip_hna_v1.9.183","modelName":"1WPD4CIHIR__2","modemType":"RTK_RTL8711am","oneshot":"y","ruleEngine":"y","size":1572864},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.138","subDeviceCount":0,"firebaseLogKey":null,"cardType":"Small","cardControl":"Base","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N","homeMovableYn":"Y"} [08/04/2023, 11:56:13] [homebridge-lg-thinq] [Water purifier] Setting up device! [08/04/2023, 11:56:13] [homebridge-lg-thinq] Device not supported: ebd83e19-f1ff-1744-a0d7-1c392961cdfe: Water purifier (WATER_PURIFIER 1WPD4CIHIR_2) [08/04/2023, 11:56:13] [homebridge-lg-thinq] ebd83e19-f1ff-1744-a0d7-1c392961cdfe - unregistered!

ahmadnazirafiq commented 1 year ago

Is there anything that you need for me to provide to help with the support?

nVuln commented 1 year ago

Is there anything that you need for me to provide to help with the support?

not yet for now, I'm a bit busy at this time I'll let you know If I need anything else, thank you so much

nVuln commented 1 year ago

I just got this in device spec "supportControl": false, can you control this device via lg thinq app?

ahmadnazirafiq commented 1 year ago

Yes, i can control the water purifier just fine in the ThinQ app, using it everyday. Would you like me to re-upload a newer logs?

ahmadnazirafiq commented 10 months ago

Hi, any update on this? Or was it not possible?