Closed Pehesi97 closed 1 year ago
please turn on homebridge debug mode and collect some debug logging
something like this mqtt message received:
, let see when AC temperature changed, any mqtt message already sent
That's the point. There aren't any mqtt message received
logs... This is what I see about MQTT:
I tried forking the repo and changing the refresh data and logging when the software receives data from a device. Installed my fork in HomeBridge but I don't get any messages either.
@Pehesi97 when no mqtt message received, plugin will get device data from api every 10 minute, I'm not sure why your AC not working with mqtt
just saw you enabled thinq1 flag, your AC running on thinq1 ?
Isn't 10 minutes a lot of time?
just saw you enabled thinq1 flag, your AC running on thinq1 ?
No it's not, should I disable it?
edit: I've disabled it and now I get some Received snapshot: <data>
messages, but no luck with MQTT.
Isn't 10 minutes a lot of time?
nop, because all thinq2 working with mqtt protocol, 10 minute just a backup method
just saw you enabled thinq1 flag, your AC running on thinq1 ?
No it's not, should I disable it?
edit: I've disabled it and now I get some
Received snapshot: <data>
messages, but no luck with MQTT.
can you upload AC device data? it should be Device data:
in debug logging
Sure, I will enable debug mode again and send the device data here.
I get this when I reset HomeBridge, but no other messages like this.
[5/1/2023, 2:14:55 PM] [LGThinQ] Device data: {"modelAppType":"NUTS","brandType":"common","deviceId":"29e9c6fb-0d78-19b7-86b5-1c39292760e7","deviceType":401,"modelName":"RAC_056905_WW","subModelNm":null,"sensorType":null,"alias":"Ar Quarto","deviceCode":"AI01","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"RAC_TYPE1","pccModelYn":"Y","autoOrderYn":"N","drServiceYn":"N","ssid":"Residencia dos Silva","timezoneCode":"America/Sao_Paulo","timezoneCodeAlias":"Brazil/Sao Paulo","sdsGuide":"{\"deviceCode\":\"AI01\"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"36369","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20220311173129000","regIndex":0,"blackboxYn":"Y","groupableYn":"Y","controllableYn":"Y","combinedProductYn":"N","masterYn":"Y","snapshot":{"airState.windStrength":6,"airState.wMode.lowHeating":0,"airState.diagCode":0,"airState.lightingState.displayControl":0,"airState.reservation.powerDry":0,"airState.wDir.hStep":2,"mid":852247009,"airState.energy.onCurrent":284,"airState.wMode.airClean":0,"airState.quality.sensorMon":0,"airState.miscFuncState.antiBugs":0,"airState.tempState.target":18,"airState.miscFuncState.autoDryRemainTime":0,"airState.operation":1,"airState.reservation.absoluteStopTime":0,"airState.wMode.jet":0,"airState.wDir.vStep":6,"timestamp":1682948247095,"airState.powerSave.basic":0,"airState.quality.PM10":0,"fwUpgradeInfo":{"upgSched":{"upgUtc":"0","cmd":"none"}},"static":{"deviceType":"401","countryCode":"BR"},"airState.miscFuncState.Uvnano":1,"airState.quality.overall":0,"airState.tempState.current":21.5,"airState.miscFuncState.extraOp":0,"airState.reservation.sleepTime":0,"airState.reservation.absoluteStartTime":0,"airState.miscFuncState.autoDry":0,"airState.reservation.targetTimeToStart":0,"meta":{"allDeviceInfoUpdate":false,"messageId":"SCyUhNp_SWen06-obEUAqg"},"airState.quality.PM1":0,"airState.wMode.smartCare":0,"airState.quality.PM2":0,"online":true,"airState.opMode":0,"airState.reservation.targetTimeToStop":0,"airState.filterMngStates.maxTime":0,"airState.filterMngStates.useTime":0},"manufacture":{"inventoryOrg":"NW7","macAddress":"1C:39:29:27:60:E7","manufactureModel":"S4NW12JA3XA.EB2GAMZ","manufacturedAt":"2021-11-19T03:11:11+00:00","registeredAt":"2021-11-19T16:20:15.334127+00:00","salesModel":"S4NW12JA3XA.EB2GAMZ","serialNo":"111AZLW5U408"},"online":true,"platformType":"thinq2","homeDeviceOrder":3,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"12.47","modelJsonUri":"https://objectcontent.lgthinq.com/07522c72-4837-4b08-b4d4-26cf34fafb36?hdnts=exp=1745520143~hmac=6dd4dbd1e16f115c25a9bd41cbea871d3c5db9bb9f2b1789aa15a2f4b08efa40","appModuleVer":"17.78","appModuleUri":"https://objectcontent.lgthinq.com/6f9e5106-2098-4fff-8382-44224a29519d?hdnts=exp=1701394617~hmac=5b9c7381ced9740f199fbe379f86226fcb0dd261953164fbfed15b0d1bf63b7e","appRestartYn":"Y","appModuleSize":"12867303","langPackProductTypeVer":"79.6","langPackProductTypeUri":"https://objectcontent.lgthinq.com/ae071619-e30f-43a6-933e-00183a45c46b?hdnts=exp=1744796964~hmac=06c42a731a8cfe526d970357fbc04afff51d15fd9cbae988782f66533b45a97f","langPackModelVer":null,"langPackModelUri":null,"roomId":"","fwInfoList":[{"checksum":"0000A028","order":1,"partNumber":"SAA39619399"}],"modemInfo":{"appVersion":"clip_hna_v1.9.188","modelName":"RAC_056905_WW","modemType":"RTK_RTL8711am","oneshot":"y","ruleEngine":"y","size":1572864},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.099","subDeviceCount":0,"firebaseLogKey":"P:SD","cardType":"Small","cardControl":"Control","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N","homeMovableYn":"Y"}
[5/1/2023, 2:14:55 PM] [LGThinQ] [Ar Quarto] Setting up device!
[5/1/2023, 2:14:55 PM] [LGThinQ] Restoring existing accessory: 29e9c6fb-0d78-19b7-86b5-1c39292760e7: Ar Quarto (AC RAC_056905)
[5/1/2023, 2:14:55 PM] [LGThinQ] Device data: {"modelAppType":"NUTS","brandType":"common","deviceId":"9f9371a6-b0ba-1f31-9409-acf10863397e","deviceType":401,"modelName":"RAC_056905_WW","subModelNm":null,"sensorType":null,"alias":"Ar Escritório","deviceCode":"AI01","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"RAC_TYPE1","pccModelYn":"Y","autoOrderYn":"N","drServiceYn":"N","ssid":"Residencia dos Silva","timezoneCode":"America/Sao_Paulo","timezoneCodeAlias":"Brazil/Sao Paulo","sdsGuide":"{\"deviceCode\":\"AI01\"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"36369","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20220311173345000","regIndex":0,"blackboxYn":"Y","groupableYn":"Y","controllableYn":"Y","combinedProductYn":"N","masterYn":"Y","snapshot":{"airState.windStrength":6,"airState.wMode.lowHeating":0,"airState.diagCode":0,"airState.lightingState.displayControl":1,"airState.wDir.hStep":0,"mid":325580698,"airState.energy.onCurrent":50,"airState.wMode.airClean":0,"airState.quality.sensorMon":0,"airState.miscFuncState.antiBugs":0,"airState.tempState.target":23,"airState.miscFuncState.autoDryRemainTime":0,"airState.operation":1,"airState.wMode.jet":0,"airState.wDir.vStep":0,"timestamp":1682949877091,"airState.powerSave.basic":0,"airState.quality.PM10":0,"static":{"deviceType":"401","countryCode":"BR"},"airState.quality.overall":0,"airState.tempState.current":24.5,"airState.miscFuncState.extraOp":0,"airState.reservation.sleepTime":0,"airState.miscFuncState.autoDry":0,"airState.reservation.targetTimeToStart":0,"meta":{"allDeviceInfoUpdate":false,"messageId":"U0YmRx-PTECIxdoL_ZDfJw"},"airState.quality.PM1":0,"airState.wMode.smartCare":0,"airState.quality.PM2":0,"online":true,"airState.opMode":0,"airState.reservation.targetTimeToStop":0,"airState.filterMngStates.maxTime":0,"airState.filterMngStates.useTime":0},"manufacture":null,"online":true,"platformType":"thinq2","homeDeviceOrder":4,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"12.47","modelJsonUri":"https://objectcontent.lgthinq.com/1231689d-2773-4737-b6c7-25e27f12fd2f?hdnts=exp=1745520143~hmac=6da38a36ab0397634618e025b81ee9444783767ecb2ca3548a3800ffd25a2444","appModuleVer":"17.78","appModuleUri":"https://objectcontent.lgthinq.com/6f9e5106-2098-4fff-8382-44224a29519d?hdnts=exp=1701394617~hmac=5b9c7381ced9740f199fbe379f86226fcb0dd261953164fbfed15b0d1bf63b7e","appRestartYn":"Y","appModuleSize":"12867303","langPackProductTypeVer":"79.6","langPackProductTypeUri":"https://objectcontent.lgthinq.com/ae071619-e30f-43a6-933e-00183a45c46b?hdnts=exp=1744796964~hmac=06c42a731a8cfe526d970357fbc04afff51d15fd9cbae988782f66533b45a97f","langPackModelVer":null,"langPackModelUri":null,"roomId":"","fwInfoList":[{"checksum":"00003F21","order":1,"partNumber":"SAA40128561"}],"modemInfo":{"appVersion":"clip_hna_v1.9.188","modelName":"RAC_056905_WW","modemType":"QCOM_QCA4010","ruleEngine":"y"},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.104","subDeviceCount":0,"firebaseLogKey":"P:SD","cardType":"Large","cardControl":"Control","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N","homeMovableYn":"Y"}
[5/1/2023, 2:14:55 PM] [LGThinQ] [Ar Escritório] Setting up device!
[5/1/2023, 2:14:55 PM] [LGThinQ] Restoring existing accessory: 9f9371a6-b0ba-1f31-9409-acf10863397e: Ar Escritório (AC RAC_056905)
[5/1/2023, 2:14:55 PM] [LGThinQ] Device data: {"modelAppType":"NUTS","brandType":"common","deviceId":"bdd24a8c-6169-1d7c-a4c5-1c3929233640","deviceType":101,"modelName":"2RES1VE61PFWC","subModelNm":null,"sensorType":null,"alias":"Refrigerador","deviceCode":"KI0101","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"TYPE1","pccModelYn":"N","autoOrderYn":"N","drServiceYn":"N","ssid":"Residencia dos Silva","timezoneCode":"America/Sao_Paulo","timezoneCodeAlias":"Brazil/Sao Paulo","sdsGuide":"{\"deviceCode\":\"KI01\"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"36369","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20220204230614000","regIndex":0,"blackboxYn":"Y","groupableYn":"N","controllableYn":"N","combinedProductYn":"N","masterYn":"Y","snapshot":{"fwUpgradeInfo":{"upgSched":{"upgUtc":"0","cmd":"none"}},"static":{"deviceType":"101","countryCode":"BR"},"meta":{"allDeviceInfoUpdate":false,"messageId":"RoywHGQGTxy9gkfzjgL7Aw"},"mid":853446952,"online":true,"refState":{"atLeastOneDoorOpen":"CLOSE","displayLock":"UNLOCK","freezerTemp":1,"fridgeTemp":5,"tempUnit":"CELSIUS","expressMode":"OFF","activeSaving":"OFF","freshAirFilter":"IGNORE","monStatus":"NORMAL","smartSavingMode":"SMARTGRID_DD_ON","smartSavingRun":"STOP","waterFilter":"6_MONTH"},"timestamp":1682949447417},"manufacture":{"inventoryOrg":"CP3","macAddress":"1C:39:29:23:36:40","manufactureModel":"GC-L247SLUV.APZFSBS","manufacturedAt":"2021-11-08T01:11:48+00:00","registeredAt":"2021-11-13T18:21:38.268074+00:00","salesModel":"GC-L247SLUV.APZFSBS","serialNo":"111TRUB13758"},"online":true,"platformType":"thinq2","homeDeviceOrder":1,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"1.0","modelJsonUri":"https://objectcontent.lgthinq.com/c6ee7998-d4b2-42a1-ae1c-0b3b8c20ad42?hdnts=exp=1692241233~hmac=27d77ef7c447461732d358e4ef3cd74d9d7eca9fc9f4bb2b55cb714a49c0a90d","appModuleVer":"303.35","appModuleUri":"https://objectcontent.lgthinq.com/d9e9cbd3-9734-4d6b-88d4-003d35cd5ca1?hdnts=exp=1703119553~hmac=9c6b7b8be633eda86867710cb8494a7e85adc22e92ac5154a595c254e49e9027","appRestartYn":"Y","appModuleSize":"8344898","langPackProductTypeVer":"63.2","langPackProductTypeUri":"https://objectcontent.lgthinq.com/cf5184e6-0c6e-4efb-af74-759921c4bd7f?hdnts=exp=1745583007~hmac=cbbf344b43f48428c07c6ae68a8c9db166d578afe0a5856275a04d07f41dc329","langPackModelVer":null,"langPackModelUri":null,"roomId":"164401620817461347","fwInfoList":[{"checksum":"014272B1","order":2,"partNumber":"SAA39433301"},{"checksum":"0000A348","order":1,"partNumber":"SAA40511801"}],"modemInfo":{"appVersion":"clip_hna_v1.9.183","modelName":"2RES1VE61PFWC","modemType":"RTK_RTL8711am","oneshot":"y","ruleEngine":"y","size":1572864},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.099","subDeviceCount":0,"firebaseLogKey":"T:RFSSSS-M:24-P:P_VEYRON6","cardType":"Small","cardControl":"Base","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N","homeMovableYn":"Y"}
[5/1/2023, 2:14:55 PM] [LGThinQ] [Refrigerador] Setting up device!
[5/1/2023, 2:14:55 PM] [LGThinQ] Restoring existing accessory: bdd24a8c-6169-1d7c-a4c5-1c3929233640: Refrigerador (REFRIGERATOR 2RES1VE61PFWC)
[5/1/2023, 2:14:55 PM] [LGThinQ] Device data: {"modelAppType":"NUTS","brandType":"common","deviceId":"e96c88e3-a97d-1c9d-b45e-24e853f76f95","deviceType":201,"modelName":"F_B7_F___W.B_1ECON","subModelNm":null,"sensorType":null,"alias":"Lava&Seca","deviceCode":"LA02","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"TYPE2","pccModelYn":"N","autoOrderYn":"N","drServiceYn":"N","ssid":"Residencia dos Silva","timezoneCode":"America/Sao_Paulo","timezoneCodeAlias":"Brazil/Sao Paulo","sdsGuide":"{\"deviceCode\":\"LA02\"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"36369","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20220305215042000","regIndex":0,"blackboxYn":"Y","groupableYn":"N","controllableYn":"N","combinedProductYn":"N","masterYn":"Y","snapshot":{"washerDryer":{"sequenceNum":1,"courseFL24inchBaseTitan":"TURBO59","ezLinkDetergentState":"EZLINKDT_NOT_EMPTY","initialTimeMinute":0,"preState":"INITIAL","mlStep":0,"remainTimeHour":0,"preWash":"PREWASH_OFF","ezDispenseType":"EZD_DETERGENT_SOFTENER","state":"RUNNING","ezCSSoftenerSetVal":"EZCSSO_OFF","wrinkleCare":"WRINKLECARE_OFF","AIDDLed":"AIDDLed_OFF","medicRinse":"MEDICRINSE_OFF","accumulatedEnergyData":32,"ezDispenseNotation":"ezDisNotation_ml","turboWash":"TURBOWASH_ON","remainTimeMinute":41,"steamSoftener":"STEAMSOFTENER_OFF","childLock":"CHILDLOCK_OFF","remoteStart":"REMOTE_START_ON","ezDispenseDrawerState":"ezDisDrawer_CLOSE","rinseSpin":"RINSE_SPIN_OFF","initialTimeHour":1,"initialBit":"INITIAL_BIT_OFF","periodicEnergyData":32,"standby":"STANDBY_OFF","error":"ERROR_NO","dryLevel":"NOT_SELECTED","ezDetergentState":"EZCSDT_NOT_EMPTY","creaseCare":"CREASECARE_OFF","ezSoftenerAmount":0,"smartCourseFL24inchBaseTitan":"NOT_SELECTED","steam":"STEAM_OFF","rinse":"RINSE_NORMAL","loadItemWasher":"LOADITEM_OFF","temp":"TEMP_20","doorLock":"DOOR_LOCK_ON","reserveTimeMinute":0,"ezCSDetergentSetVal":"EZCSDT_OFF","TCLCount":16,"downloadedCourseFL24inchBaseTitan":"RINSESPIN","ezSoftenerState":"EZCSSO_NOT_EMPTY","ezDispenseSetting":"EZD_SETTING_OFF","ecoHybrid":"ECOHYBRID_OFF","reserveTimeHour":0,"spin":"SPIN_1400","ezDetergentAmount":0,"soilWash":"SOILWASH_NORMAL"},"fwUpgradeMode":"regular","fwStatus":"failed","static":{"deviceType":"201","countryCode":"BR"},"fwCurrentCount":0,"meta":{"allDeviceInfoUpdate":false,"messageId":"suMktIhmSUyNNmfNy2k2zQ"},"mid":1212144,"online":true,"fwCurrentFileSize":0,"fwCount":1,"timestamp":1682950472596},"manufacture":null,"online":true,"platformType":"thinq2","homeDeviceOrder":2,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"2.0","modelJsonUri":"https://objectcontent.lgthinq.com/33ec762c-b739-4e4b-96b7-3e68c08558c9?hdnts=exp=1714692622~hmac=4bde15f799d016319dfa6ad07837a3c7d63beac4b6f38306515eb0b90b0003d8","appModuleVer":"6.21","appModuleUri":"https://objectcontent.lgthinq.com/ea54eb02-d923-4bf8-b6b7-6cef48783849?hdnts=exp=1705894666~hmac=da9f0fcb47f96863814304ec250639c83e7b3b5400ff0e84e7be0162df4c2f6a","appRestartYn":"Y","appModuleSize":"10013123","langPackProductTypeVer":"117.3","langPackProductTypeUri":"https://objectcontent.lgthinq.com/ed31315f-7f2b-4161-9c1b-ba6d272efb00?hdnts=exp=1745740717~hmac=5b4b26acebcccc286508cfaa1683a3195ce360bd39ada9aaca1008dc681bb989","langPackModelVer":"0.4","langPackModelUri":"https://objectcontent.lgthinq.com/783835c8-9561-42a3-9451-ee832f5db874?hdnts=exp=1689386942~hmac=72e2e906b897269ae5409581e57c5c33669d55914b3d7940e470ef84fce49da2","roomId":"","fwInfoList":[{"checksum":"00005350","order":2,"partNumber":"SAA42458604"},{"checksum":"0000F959","order":1,"partNumber":"SAA41837640"}],"modemInfo":{"appVersion":"clip_hna_v1.9.183","modelName":"F_B7_F___W.B_1ECON","modemType":"QCOM_QCA4010","ruleEngine":"y"},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.099","subDeviceCount":0,"firebaseLogKey":null,"cardType":"Small","cardControl":"Base","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N","homeMovableYn":"Y"}
That's the point. There aren't any
mqtt message received
logs... This is what I see about MQTT:
this log will be appear when any status changed from AC
this is just startup message, please wait some minute, try adjust AC and see if anything show up
The temperature sensor should change as the AC decreases the temp in the room. That's not happening.
I made a few adjustments to the AC but no luck with MQTT.
BTW the MQTT connection is spawned alongside the plugin. I get that message, but I don't receive any messages as the system is working.
hmm, I don't know this happen only in your AC or all AC I don't have AC right here for testing, I think I should increase refresh interval time for AC device too
Yeah, less than 10 minutes would help a lot.
Hi, I’m seeing the same issue. I’ve four ACs at home and the temperature doesn’t update automatically in HomeKit. It only does it once after I open the app in my phone. Let me know how can I help debugging, maybe collecting some data. (Btw, the rest of the plugin works great, thanks)
This seems to be resolved. Thanks a million @nVuln
This is still occurring for me, on version 1.5.3. I have 3 AC units, one of which is ThinqV2, and the others are V1; all are affected equally.
Happy to provide any needed data to help troubleshoot it.
Describe The Bug: AC Temperature (current temperature as sensor) won't refresh in HomeKit reflecting the actual status. I think that may have to do with the ThinQ2 refresh interval being fixed. I also noticed that when I open the LG ThinQ app in my phone, the AC status is then updated in HomeKit.
To Reproduce:
Expected behavior:
Logs:
Couldn't find anything related to this in the logs. All accessories have been imported and even with DEBUG mode on in HomeBridge no error / warning messages have popped up.
Plugin Config:
Environment: