Contribution - LG Thinq [WasherDryer] [WIP]

Hi @nemer, is the dishwasher thing still in development or you abandoned the project?

It’s supposed to be finished Ricky. Let me check if I updated it in the repo and I let you know.
Actually now I’m only writing the binding documentation and after send to revision to be released in the main OH branch.

It’s supposed to be finished. Let me verify if I updated it in the repo.

Thanks @nemer can you tell me where I can download the binding to test it?

Hi, Ricky. Sorry, I’m in debt with you :-(. I found some issues in some parts of the binding and had to refactor some parts. I gonna delivery these feature to you test in the next days. I’m only finishing some tests.

Thanks @nemer. I’ll wait for something to test.

Hi Ricky. Finally I uploaded a test version for DW.
It’s very basic, because I don’t know all the functions its supports from LG App. Let me know about the tests and if you missing some feature.

1 Like

Hi @nemer,

I tried the new binding. Dishwasher is dicovered and added correctly but never goes online. I have the following error:

2024-05-16 22:04:17.930 [ERROR] [nal.handler.LGThinQDishWasherHandler] - Error updating thing Lavastoviglie/40c06592-e5f0-1b3b-b8cd-b8165fcae1da from LG API. Thing goes OFFLINE until next retry: Error reading IO interface
org.openhab.binding.lgthinq.internal.errors.LGThinqApiException: Error reading IO interface
	at org.openhab.binding.lgthinq.lgservices.LGThinQAbstractApiClientService.getCapability( ~[bundleFile:?]
	at org.openhab.binding.lgthinq.internal.handler.LGThinQAbstractDeviceHandler.getCapabilities( ~[bundleFile:?]
	at org.openhab.binding.lgthinq.internal.handler.LGThinQAbstractDeviceHandler.updateThingStateFromLG( [bundleFile:?]
	at org.openhab.binding.lgthinq.internal.handler.LGThinQAbstractDeviceHandler$ [bundleFile:?]
	at java.util.concurrent.Executors$ [?:?]
	at java.util.concurrent.FutureTask.runAndReset( [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
	at java.util.concurrent.ThreadPoolExecutor$ [?:?]
	at [?:?]
Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 start byte 0xb0
 at [Source: (File); line: 419, column: 22]
	at com.fasterxml.jackson.core.JsonParser._constructError( ~[bundleFile:?]
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError( ~[bundleFile:?]
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidInitial( ~[bundleFile:?]
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidChar( ~[bundleFile:?]
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2( ~[bundleFile:?]
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString( ~[bundleFile:?]
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer._deserializeContainerNoRecursion( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose( ~[bundleFile:?]
	at com.fasterxml.jackson.databind.ObjectMapper.readTree( ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.LGThinQAbstractApiClientService.getCapability( ~[bundleFile:?]
	... 9 more

The encode of the your cap file is not UTF-8. This file is downloaded in backgroud by the binding to get the meta-model of the device. This file is structured as JSON format, and it’s based on the JSON RFC:

Blockquote 1. Encoding - JSON text SHALL be encoded in Unicode. The default encoding is

So, it’s mostly like a mistake in the file from LG API than this binding. But, regardless this issue, I must to do some “magic” to fix the file because the LG team will not care about us :smiley:

Can you please send me your thinq-xxxxx-xxxx-cap.json file ?

Hi @nemer

an important update…
Looking for the files you asked I found that I had an old version. I deleted it and after adding again the thing it seems that the problem is gone!

I’ll check the other funztions and let you know if everything works as expected.

Thanks a lot.

Let me know !