-
Notifications
You must be signed in to change notification settings - Fork 17
Snapshot missing for Thinq1 devices: 'airState.operation' of undefined #4
Comments
What model air conditioner do you have? Have you tried restarting
Homebridge again?
|
Yes I tried restart. My model is ES-W12GJ2F0 |
Ok that’s good to know- I’ll be curious to see if the API for that model is slightly different and causing this conflict. I’ll try to add some debugging here for us to investigate further, stay tuned |
Ok, I just published version 0.3.3 with additional debug logging. Could you:
|
Hi, you can find at below. If you need anything just ask me 😀
|
Hmm that's very interesting -- the response is successful, but Just to confirm, you've successfully controlled this A/C unit with the "LG ThinQ" app, correct? If you haven't yet, could you try opening the app, view the A/C controls, and then watch the Homebridge logs for ~60 seconds to see if the interval error comes up again? There's one API that I didn't enable yet because it didn't seem required, but maybe this device model relies on it... |
Yes I am using LG Thinq app for a long time. I open my AC device with it and send some commands. I am pasting some logs after the operation. btw, I just noticed that when I send heat command from Apple Home, logs shows dry command instead heat. I don't know if it is expected behaviour. Just want to let you know.
|
Cool, thanks for confirming! I just pushed version 0.3.4, which includes the API I didn't previously include. Could you try updating to 0.3.4, restart, and wait ~2 minutes to see if it comes up? You should see a successful The other thing that stands out to me is |
On the dry vs heat piece: my A/C unit calls this a “dry” mode, so I wrote it as “dry” internally. But heat/dry do share the same low-level API values so it should work the same |
Hi, I assume 0.3.4 is not available on npm. Also I cannot see update on homebridge gui. |
Sorry, forgot to publish -- 0.3.4 should be up now |
New logs coming
|
Gotcha, looks like this might be a ThinQ 1 vs ThinQ 2 issue 😞 Have you tried this plugin before? I couldn’t get it working because my device is on ThinQ 2, but it might work for your A/C on ThinQ 1: https://github.com/beele/HomebridgeLgSmartThinqAirco Otherwise I can try to get this plugin working for ThinQ 1, but I may need your help 😅 |
Hi, yes this plugin works for me. But some functions don't work with this plugin like mode switch. So I wanted to try alternatives and your one is very promising. |
I have 2 ACs, both of them connects to v2: I can turn on/off the devices, but there is no temp status :( Thanks! 👍 |
@vaxi87 Do you see this same error?
If not, would you mind opening a new issue for this? Please include the model of your two A/C units as well |
@sman591 You mentioned Charles Proxy. I've got it set up on my machine with my iOS device proxying to it. I've never used it before so I'm not sure of the steps that are best for getting you helpful logs. |
I've also got SSL proxying enabled so I can actually see the content that the LG Thinq app is sending/receiving. |
@jakemauer Perfect! If Charles Proxy is working, we can figure out what the
If you want to try it out and share the results, I'd maybe suggest putting them in "summary" blocks or create a Gist of each and share it |
@sman591 I'm planning on working on this this weekend. What servers should I be looking at traffic from/to? |
I’m not sure which exactly, but you’ll probably end up whitelisting a few for SSL to find it. I found the easiest way is to tap controls on the phone and see which HTTP request is sent immediately with it |
I'm on RAC_056905_WW, would love to have it working |
+1 for Thinq1 support please. Model: LP1419IVSM (software returns: POT_056905_WW) |
Please support for RAC_056905_WW model, Thank YouPor favor soporte para el modelo RAC_056905_WW, Gracias |
Please support for RAC_056905_WW model, Thank You |
Having the same issue!
|
My PAC_910604_WW Doesn't work too... |
am getting and error for the cool and heat model only, the model with only cool feature has no issue error massage: [3/1/2021, 5:21:36 PM] [LgThinqAirConditioner] "M Air Conditioner" (model RAC_056905_WW) uses the thinq1 platform, which is not supported. Please see #4 for updates. |
Hi! (model RAC_056905_RU) uses the thinq1 platform, which is not supported. Please see #4 for updates. P.S. LG B09TS |
Hi, (model RAC_056905_WW) uses the thinq1 platform, which is not supported. Please see #4 for updates |
Hi, On behalf of everyone else I would like to ask if there are any updates regarding issue #4. Thanks! |
Same here, would love to see support for Tinq1 platform
|
[20/07/2021, 14:01:20] [LgThinqAirConditioner] "AC" (model RAC_056905_WW) uses the thinq1 platform, which is not supported. Please see #4 for updates. Please update |
Please support these models as well. Thank you. [7/25/2021, 8:37:50 PM] [LgThinqAirConditioner] "Air 1" (model PAC_910604_KR) uses the thinq1 platform, which is not supported. Please see #4 for updates. |
Having the same issue!
what can I do? |
hi everyone, I'm developer of plugin |
I'd like to help you test, but I use HOOBS |
After authentication logs give a lot of error. But my ac appear at my home app. Status or temp does not work.
`[2020-5-12 22:41:02] [LgThinqAirConditioner] Initializing LgThinqAirConditioner platform...
[2020-5-12 22:41:04] [LgThinqAirConditioner] Error: Auth not ready yet, please log in.
at ExampleHomebridgePlatform.inititializeAuth (/usr/local/lib/node_modules/homebridge-lg-thinq-ac/src/platform.ts:129:13)
at ExampleHomebridgePlatform.initialize (/usr/local/lib/node_modules/homebridge-lg-thinq-ac/src/platform.ts:85:18)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2020-5-12 22:42:58] [LgThinqAirConditioner] Error: getaddrinfo EAI_AGAIN route.lgthinq.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {
errno: ‘EAI_AGAIN’,
code: ‘EAI_AGAIN’,
syscall: ‘getaddrinfo’,
hostname: ‘route.lgthinq.com’,
config: {
url: ‘https://route.lgthinq.com:46030/v1/service/application/gateway-uri’,
method: ‘get’,
headers: {
Accept: ‘application/json’,
‘X-Thinq-App-Ver’: ‘3.0.2100’,
‘X-Thinq-App-Type’: ‘NUTS’,
‘X-Language-Code’: ‘tr-TR’,
‘X-Client-Id’: ‘dda6bf26a674a02bc1e8612e9884b2253fda2b2fbc57b47702a80011b72f02ca’,
‘X-Thinq-App-Level’: ‘PRD’,
‘X-Service-Code’: ‘SVC202’,
‘Accept-Language’: ‘tr-TR’,
‘X-Message-Id’: ‘89ZfpKmsH8qXUmar7uQkX.’,
‘Content-Type’: ‘application/json;charset=UTF-8’,
‘X-Api-Key’: ‘VGhpblEyLjAgU0VSVklDRQ==‘,
‘X-Thinq-App-Os’: ‘IOS’,
‘X-Country-Code’: ‘TR’,
‘X-Service-Phase’: ‘OP’,
‘Accept-Encoding’: ‘gzip’,
‘User-Agent’: ‘axios/0.19.2’
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
responseType: ‘json’,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
validateStatus: [Function: validateStatus],
data: undefined
},
request: Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: ‘utf8’,
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: false,
bufferedRequestCount: 0,
corkedRequestsFree: [Object]
},
writable: true,
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
protocol: ‘https:’,
maxRedirects: 21,
maxBodyLength: 10485760,
path: ‘/v1/service/application/gateway-uri’,
method: ‘GET’,
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: ‘route.lgthinq.com’,
port: ‘46030’,
nativeProtocols: [Object],
pathname: ‘/v1/service/application/gateway-uri’
},
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
socket: [TLSSocket],
connection: [TLSSocket],
_header: ‘GET /v1/service/application/gateway-uri HTTP/1.1\r\n’ +
‘Accept: application/json\r\n’ +
‘X-Thinq-App-Ver: 3.0.2100\r\n’ +
‘X-Thinq-App-Type: NUTS\r\n’ +
‘X-Language-Code: tr-TR\r\n’ +
‘X-Client-Id: dda6bf26a674a02bc1e8612e9884b2253fda2b2fbc57b47702a80011b72f02ca\r\n’ +
‘X-Thinq-App-Level: PRD\r\n’ +
‘X-Service-Code: SVC202\r\n’ +
‘Accept-Language: tr-TR\r\n’ +
‘X-Message-Id: 89ZfpKmsH8qXUmar7uQkX.\r\n’ +
‘Content-Type: application/json;charset=UTF-8\r\n’ +
‘X-Api-Key: VGhpblEyLjAgU0VSVklDRQ==\r\n’ +
‘X-Thinq-App-Os: IOS\r\n’ +
‘X-Country-Code: TR\r\n’ +
‘X-Service-Phase: OP\r\n’ +
‘Accept-Encoding: gzip\r\n’ +
‘User-Agent: axios/0.19.2\r\n’ +
‘Host: route.lgthinq.com:46030\r\n’ +
‘Connection: close\r\n’ +
‘\r\n’,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: ‘GET’,
insecureHTTPParser: undefined,
path: ‘/v1/service/application/gateway-uri’,
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
_redirectable: [Circular],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: ‘https://route.lgthinq.com:46030/v1/service/application/gateway-uri’,
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function]
}
[2020-5-12 22:44:29] [LgThinqAirConditioner] Initializing LgThinqAirConditioner platform...
[2020-5-12 22:44:29] Loading 1 accessories...
[2020-5-12 22:44:32] [LgThinqAirConditioner] Initiating auth with provided redirect URL
[2020-5-12 22:44:45] [LgThinqAirConditioner] Discover found 1 total devices
[2020-5-12 22:44:45] [LgThinqAirConditioner] Registering new accessory: KLİMA
[2020-5-12 22:44:45] [LgThinqAirConditioner] Starting refresh interval (set to 1 minutes)
[2020-5-12 22:44:47] [LgThinqAirConditioner] Error during interval update TypeError: Cannot read property ‘airState.operation’ of undefined
[2020-5-12 22:45:46] [LgThinqAirConditioner] Error during interval update TypeError: Cannot read property ‘airState.operation’ of undefined
[2020-5-12 22:46:06] [LgThinqAirConditioner] Failed to set power state off Error: Request failed with status code 400
[2020-5-12 22:46:46] [LgThinqAirConditioner] Error during interval update TypeError: Cannot read property ‘airState.operation’ of undefined
`
The text was updated successfully, but these errors were encountered: