[RELEASE] ThinQ Connect Integration (Official API) for Hubitat

ThinQ Connect Integration for Hubitat

This is a new Hubitat integration for LG ThinQ devices using the official LG ThinQ Connect API with PAT (Personal Access Token) authentication. This integration replaces the older reverse-engineered approach with the official documented API. Official API documentation: https://smartsolution.developer.lge.com/en/apiManage/thinq_connect

You can find the app & drivers on HPM, just search for "thinq" or at GitHub - jonozzz/hubitat-thinqconnect: ThinQ Connect Integration for Hubitat

Known issues

  • Sometimes the state updates come out of order (e.g. a washer will show RUNNING and then INITIAL)
  • Sometimes the remaining time will only show minutes (e.g. instead of 2:10, it will show 0:10)

Supported devices

  • Washer
  • Dryer
  • Dishwasher

Contributions are welcome for additional device types.

4 Likes

This what my log is showing for my washer. My dyer shows nothing.

Dryer shows updates in the logs but only after hitting refresh.

Seems like your hub can't connect to the MQTT SSL server to get the device updates. I can't reproduce this issue on my C-8 hub. What Hubitat platform and software version do you have?

C-8 on .158

What do you need to add OVEN?

FYI, the original app had displays/info for each burner (I have a dual-fuel model) and the old integration and API still did as well, but they dumbed down the LG app to only "cooktop" and "oven" and it's infuriating they did so...

I’ve added drivers for the oven, cooktop, and refrigerator, following the same structure as the other drivers. I don’t have a way to test them myself, but hopefully the properties are being reported correctly. I’m less certain about the remote control functions, though.

Please use GitHub for new issues: Issues · jonozzz/hubitat-thinqconnect. Pull requests are also welcome if you’d like to make the changes yourself.

Thanks,

Their current OVEN API sucks.

There's no cooktop state or data. The "cooktop" device seems to be for a standalone cooktop, not the one on the oven. In the LG app, Oven has both Cooktop and Range as subcomponents and the old API/HE app did as well.

My one real ask of the LG app or any integration is notification of a burner left on too long and there's nothing.

So maybe it's not the API but what is coded in the driver?

How do we retrieve the capabilities of the device? Seems the old DMeglio driver WAS using MQTT and those cooktop burner attributes were still supported.

Can you install the oven and cooktop drivers I made today, enable debug logging and see if the app discovers your oven? In the logs you'll see the values that the new API is providing.

It discovered the OVEN after I used HPM to update.

This is what the debug shows the API returning:

Conversely, this is what the old app shows the API returning:

AND

Hi. Any chance you could add support for a ThinQ microwave? Would love to be able to control the fan and light on my over the range microwave via rules. Thanks.

I just added it. Enable debugging and see if it works for you. I have no way of testing it, unfortunately.

Thanks! Will do.

I tried to uninstall and reinstall the app, but I can't get the microwave to show up. It will only show my washer and dryer. Any suggestions how to get the microwave device to show up in the app?

Thanks.

Nevermind. I tried it again and it worked this time. Will test it out. Thanks again!

1 Like

I just installed this application and driver for a microwave. Having a few issues.

I can see the status in Hubitat change when I do things on the microwave (turn light on, and see the status update in Hubitat).

However, I cannot control anything from Hubitat. If I try to turn the light "on" to, say level 1, I get the following error:

ThinQ Connect Integration API POST exception: (400) [error:[code:2207, message:Invalid command error],

Not sure where I messed up....any help would be greatly appreciated.

EDIT: I also see this trying to refresh every 15 seconds. The ThinQ app shows:
ThinQ Connect Integration retrieveMqttDetails()

and the device shows:
Lost connection to MQTT, retrying in 15 seconds java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: Missing key encoding

not sure if this is part of my problem

Can you use the "Set Fan Speed And Lamp Brightness" command and put some values in both fields. I see the HA code is always sending both lamp and fan values.

Not sure about the MQTT key error. Can you DM me and attach the exported "ThinQ Connect Integration" app so I can take a look at your values.

Well, fan AND light (both set to 1) worked....microwave turned the light on, and the fan....

Let me get the app flie to you now...

Ok, I guess that's how the new API works -- it needs both values set. Will have to figure out a fix.