Contribution - LG ThinQ Binding

Hello, guys ! Can you upload here a front panel picture of your Washers/Driers ? First to catalogue in the documentation, but mainly to map the correct description based on the schema ID of the courses.

Don‘t know why you would needit, as translations can be done later via crowding, but here you go


:+1:

I just renamed this topic as we are now heading for more than just air conditioners….

1 Like

Ahh, you´re right…
Just tried though, ended up with the same error…

Does it require OH 3.3 ??

Hm, not shure as I tried in my 3.3 test environment. Will check tomorrow.

Not sure whats wrong… But I simply cant get it to install :unamused:

Kim, look. Try to put this jar directly in your openhab-addons directory. I’m working on OH3.2 also without problems.
https://github.com/nemerdaud/openhab-addons/blob/feature/lgthinq-binding/org.openhab.binding.lgthinq-3.3.0-SNAPSHOT.jar

1 Like

Thats did the trick… Now its running :smiley:

Now I need to locate the json file for your information.

I dont seem to get the bridge up running…
I´m not quite sure what I´m suppose to write in country/language.

This is the error I get:

2022-02-08 00:42:04.749 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgthinq:bridge:df33f268e4' changed from OFFLINE (COMMUNICATION_ERROR): Generic Error in the LG API communication process. to UNKNOWN
2022-02-08 00:42:04.750 [INFO ] [openhab.event.ConfigStatusInfoEvent ] - ConfigStatusInfo [configStatusMessages=[]]
2022-02-08 00:42:04.753 [INFO ] [openhab.event.ConfigStatusInfoEvent ] - ConfigStatusInfo [configStatusMessages=[]]
==> /var/log/openhab/openhab.log <==
2022-02-08 00:42:06.657 [ERROR] [internal.api.OauthLgEmpAuthenticator] - Error login into account. The reason is:{
  "error" : {
    "request" : "/emp/v2.0/account/session/...myemail...@gmail.com",
    "code" : "MS.001.03",
    "message" : "DK"
  }
}
==> /var/log/openhab/events.log <==
2022-02-08 00:42:06.661 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgthinq:bridge:df33f268e4' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): Generic Error in the LG API communication process.
==> /var/log/openhab/openhab.log <==
2022-02-08 00:42:19.385 [INFO ] [nternal.handler.LGThinqBridgeHandler] - Wrong configuration value for polling interval. Using default value: 300s
==> /var/log/openhab/events.log <==
2022-02-08 00:42:19.384 [INFO ] [openhab.event.ConfigStatusInfoEvent ] - ConfigStatusInfo [configStatusMessages=[]]
2022-02-08 00:42:19.386 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgthinq:bridge:df33f268e4' changed from OFFLINE (COMMUNICATION_ERROR): Generic Error in the LG API communication process. to UNKNOWN
2022-02-08 00:42:19.388 [INFO ] [openhab.event.ConfigStatusInfoEvent ] - ConfigStatusInfo [configStatusMessages=[]]
==> /var/log/openhab/openhab.log <==
2022-02-08 00:42:20.918 [ERROR] [internal.api.OauthLgEmpAuthenticator] - Error login into account. The reason is:{"error":{"request":"/emp/v2.0/account/session/...myemail..@gmail.com","code":"412","message":"Precondition Failed"}}
==> /var/log/openhab/events.log <==
2022-02-08 00:42:20.922 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgthinq:bridge:df33f268e4' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): Generic Error in the LG API communication process.

Notice I manually edited …myemail… before posting. The email is originally correct.

OK… when you created your account on LG Thinq Portal, what country and language you choose ? Notice that for now, the bridge supports only BR/PT, UK,US/EN and DE/DE country/language. But… if you ar out of these options, please, let me know your country and language then I can include in the binding.

The error message says your account is from DK (Denmark) and then… I suppose your registered language in LG account is Danish, right ?

Hi, @hmerk. I released a first version of the Washer Support. It supposed to discovery and create a thing, but without relevant channels. The important part is that the binding will monitor the Washer and create a file with data coming from LG API. I need this file to correct map the values monitored into the channels becase the schema changes between device kinds. Can you provide it for me ? You must run the binding in Log Debug mode (because the file will be created only if log debug is enabled for the binding). If no error occur, a new file will be created with the pattern: $OH3_USERDATA/thinq/thinq-*-datatrace.json

Regards

Nemer.

Thats the weird part, cause I never picked a country and language when i registre. I assume LG picked it automtickly.

Byt yes, I’m from Denmark and the language is danish

Hi Nemer,

requested information can be founde here :

I also get an error on the washer thing :

If it helps, here is a list of the channels I created for the MQTT proxy

channels:
  - id: doorLock
    channelTypeUID: mqtt:switch
    label: Türsperre
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/doorLock
      off: off
      on: on
  - id: temperatureLevel
    channelTypeUID: mqtt:number
    label: Temperatur
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/temperatureLevel
  - id: spinSpeed
    channelTypeUID: mqtt:number
    label: Drehzahl
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/spinSpeed
  - id: soilLevel
    channelTypeUID: mqtt:string
    label: Verschmutzungsgrad
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/soilLevel
  - id: remoteStart
    channelTypeUID: mqtt:switch
    label: Fernstart
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/remoteStart
      off: off
      on: on
  - id: smartCourse
    channelTypeUID: mqtt:string
    label: Smart Course
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/smartCourse
  - id: course
    channelTypeUID: mqtt:string
    label: Programm
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/course
  - id: error
    channelTypeUID: mqtt:string
    label: Fehler
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/error
  - id: switch
    channelTypeUID: mqtt:switch
    label: Schalter
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/switch
      off: off
      on: on
  - id: currentState
    channelTypeUID: mqtt:string
    label: Status
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/currentState
  - id: delayTimeDisplay
    channelTypeUID: mqtt:string
    label: Verzögerungsanzeige
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/delayTimeDisplay
  - id: delayTime
    channelTypeUID: mqtt:string
    label: Verzögerungszeit
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/delayTime
  - id: finishTimeDisplay
    channelTypeUID: mqtt:datetime
    label: Letzte Endzeit
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/finishTimeDisplay
  - id: remainingTimeDisplay
    channelTypeUID: mqtt:string
    label: Restlaufzeitanzeige
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/remainingTimeDisplay
  - id: remainingTime
    channelTypeUID: mqtt:string
    label: Restlaufzeit
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/remainingTime
  - id: runTimeDisplay
    channelTypeUID: mqtt:string
    label: Laufzeitanzeige
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/runTimeDisplay
  - id: runTime
    channelTypeUID: mqtt:string
    label: Laufzeit
    description: ""
    configuration:
      stateTopic: thinq/waschmaschine/event/runTime

Cheers
Hans-Jörg

Hans, I fixed the problem to create the thing that was preventing the datatrace to be generated. Can you retest the binding and try get the OH3_USERDATA/thinq/thinq-*-datatrace.json files ?

Probably they took. Actually, I fixed the binding to include Denmark / danish.

Regards.

1 Like

Shure, will do tomorrow morning.

Here you have example English User’s manual. On page 26 you can find front panel description.
https://gscs-b2c.lge.com/downloadFile?fileId=Mb1vKHP3JA6Xe222MUQ

Sorry for silly question, but what do you mean by account on “LG Thinq Portal”? Is this an account created with android’s app or with some other service?

It’s the place you first time create your LG’s Account, and can handle your services, some permissions, accept user agreements, etc. With this account, you can registry your Thinq devices and can access it from LG app or this binding.