ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
248 stars 36 forks source link

LG SmartThinQ #191

Closed GTV1 closed 2 years ago

GTV1 commented 5 years ago

Hallo ! Ich beantrage ein Adapter für die LG SmartThinQ Technology. Ich möchte die Temperaturen meines Side By Side Kühlschranks auslesen können. Wenn ich das richtig sehe ist das hier eine ( veraltetet ) API. http://us.smartthinq.com/images/grid/smartThinQ%203rd%20party%20openAPI.pdf
und das hier https://github.com/sampsyo/wideq
ein bestehender Phyton code . Danke!

GTV1 commented 2 years ago

Die Aktuellen Temperaturen sind im Display an meinem Kühlschrank sind akutell +5 und -21°C

TA2k commented 2 years ago

Ich denke das ist kein Status vom Kühlschrank eher registrierungsDate in UTC formatiert. Alle relevanten Informationen sind unter snapshot

GTV1 commented 2 years ago

Hmm den Punkt snapshot habe ich gar nicht ?!

GTV1 commented 2 years ago

Ich denke das ist kein Status vom Kühlschrank eher registrierungsDate in UTC formatiert. Alle relevanten Informationen sind unter snapshot

Hallo @TA2k ... ich hab mir alle Reiter noch mal angeschaut. Ich konnte keine "Temperaturen" in den Daten finden ... was mache ich flasch ?

GTV1 commented 2 years ago

Habe gerade unter Objekte noch mal alles gelöscht das IOBroker alles neu einlesen muste. Es wird viel erstellt aber auch jetzt sehe ich keine Temperaturen oder das EXpress Kühlung läuft oder der Filter gewechselt werden müste. Ich habe am KS auch mal auf Express Kühlen gestellt aber es ändert sich beim nächsten Update kein Wert...

TA2k commented 2 years ago

kontaktier mich mal über iobroker forum https://forum.iobroker.net/user/tombox

GTV1 commented 2 years ago

kontaktier mich mal über iobroker forum https://forum.iobroker.net/user/tombox

Du hast PM :-)

LuckyStrikeSlv commented 2 years ago

kontaktier mich mal über iobroker forum

Schreibt aber auch hier rein, wenn es was neues gibt, ich verfolge mit großem Interesse 😁

Bei mir ist's eine LG Klimaanlage mit vielen undefinierbaren Datenpunkten im ioBroker.

TA2k commented 2 years ago

Das Problem ist lg-thinq.0.xxx-id-xxx.platformType = thinq1 wird nicht unterstütz zur zeit nur thinq2 bei thinq2 sollte alles unter snapshot sein

ubieberich commented 2 years ago

Könntest Du bitte auch thinq1 umsetzen? Ich kann Dir die Zugangsdaten zu einem Waschtrockner mit Thinq1 geben.

GTV1 commented 2 years ago

@TA2k das wäre jetzt natürlich auch meine Bitte.

TA2k commented 2 years ago

eine erster Versuch für thinq1 ist jetzt drin. Einfach neuinstallieren und adapter neustarten

GTV1 commented 2 years ago

Nach dem TA2k den Adapter angepasst hat funktioniert jetzt auch bei mir ein V1 Gerät. Unser Kühlschrank wirft jetzt folgende Werte aus.. DANKE ! an TA2k für seine Arbeit !!

grafik

deejay808 commented 2 years ago

Hi I installed the adapter. I have 4 LG AC devices that I can manage using https://github.com/sampsyo/wideq but waiting for support in iobroker. With the current adapter, I can see all devices with their id under lg-thinq.0 but there is no additional information specific for the AC devices. Can this be added?

Thanks!

TA2k commented 2 years ago

@deejay808 please share a screenshot of the snapshot folders

LuckyStrikeSlv commented 2 years ago

@deejay808 please share a screenshot of the snapshot folders

Could you explain, which screenshot exactly would be helpful? I also have an LG AC, but I can't control it with the adapter.

TA2k commented 2 years ago

I need an overview what the adapter is creating or access to the account to reproduce this

deejay808 commented 2 years ago

If I remember well, you added the information already in the adapter and I can see it. I just was not able to control it using iobroker. The minimum I want to do is turn it on/off. I also remember that I communicated this in a PM (which I cannot find anymore). If you have some time to work on this, it will be highly appreciated :-)

TA2k commented 2 years ago

Please send me credentials via iobroker forum again

LuckyStrikeSlv commented 2 years ago

I need an overview what the adapter is creating or access to the account to reproduce this

@TA2k The adapter creates really much, I show you some of it and hope it's enough. Especially the entries in the channel «remote» look interesting, but I only can set them to true or false without getting an effect.

scr01 scr02 scr03

TA2k commented 2 years ago

ok no snapshot I need access to an account with such a device please contact me via iobroker forum

deejay808 commented 2 years ago

ok no snapshot I need access to an account with such a device please contact me via iobroker forum

My credentials are in your personal chat in the iobroker forum. I have just send an update message to you. There you can also find the description of the problem that is indicated by @LuckyStrikeSlv.

LuckyStrikeSlv commented 2 years ago

So @deejay808 already shared his credentials (thanks!) and you don't need mine anymore, @TA2k , right? Do you need any other information?

TA2k commented 2 years ago

im working on this

TA2k commented 2 years ago

@deejay808 @LuckyStrikeSlv Please reinstall the github version and test again

LuckyStrikeSlv commented 2 years ago

@TA2k I'm back at home and had time to test it, thank you for your work. Now there is a snapshot channel and the states seem to be correct.

But at the remote channel I still can't remote the AC. Should the Get- and Set-states be buttons? values? I tried some but nothing happens.

TA2k commented 2 years ago

Yes you should have this state lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation

LuckyStrikeSlv commented 2 years ago

Yes you should have this state lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation

Yeah! That was the needed hint for me. All operations are listet at lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri and can be set as string at SetOperation. It seems to work fine, thanks a lot! :-)

TA2k commented 2 years ago

Maybe you can a screenshot to show this. Because setOperation should allow true or false

deejay808 commented 2 years ago

Yes you should have this state lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation

Yeah! That was the needed hint for me. All operations are listet at lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri and can be set as string at SetOperation. It seems to work fine, thanks a lot! :-)

So far I have no .remote folder and the lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri is empty

Screenshot 2021-11-22 at 11 57 46
LuckyStrikeSlv commented 2 years ago

@TA2k Maybe you can a screenshot to show this. Because setOperation should allow true or false

That's right, but after looking to the file at lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri I (maybe) realized how to use the commands:

I changed lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation to String and pasted the command AC_MAIN_OPERATION_ON_W. The AC did turned on. By pasting AC_MAIN_OPERATION_OFF_W a few times nothing happened but a "ping" sound from AC. After restarting the adapter, the AC turned off by pasting the command again. ⠀

It seems to work fine

Maybe my statement was too hasty. It only worked a few times in that way. Many times pasting the command, the AC did nothing but a ping sound. Rare times the command worked after restarting the adapter. It seems to be randomly. I can't recognize a pattern. I think, we are on the right way but have to find out how to use the commands correctly. ⠀

@deejay808 So far I have no .remote folder and the lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri is empty

Here is the langPackProductTypeUri.txt. Have you tried to remove and reinstall the adapter because of the missing remote channel?

TA2k commented 2 years ago

I don think this is related you can enable debug mode to see what it is send to device. Please reinstall the latest github version

LuckyStrikeSlv commented 2 years ago

@TA2k

Please reinstall the latest github version

I already reinstalled the latest version (0.0.2).

you can enable debug mode to see what it is send to device.

Unfortunately I do not know how and where to activate the debug mode... could you tell me? Edit: I found it and I'm going to check ;-)

LuckyStrikeSlv commented 2 years ago

Ok, it doesn't matter, what I paste to lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation. At log it says just (11792) {"ctrlKey":"SetOperation"}.

That it worked sometimes, was just random. So I have no clue, how to control the AC.

deejay808 commented 2 years ago

With the latest version, I experience the same behaviour as specified by @LuckyStrikeSlv. Furthermore, I noticed when the AC is turned on using iobroker, I can no longer control it with the LG Thinq app. So to turn the unit off, I have to use the remote of the device.

deejay808 commented 2 years ago

@TA2k Maybe you can a screenshot to show this. Because setOperation should allow true or false

That's right, but after looking to the file at lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri I (maybe) realized how to use the commands:

I changed lg-thinq.0.xxxx-xxx-xxx.remote.SetOperation to String and pasted the command AC_MAIN_OPERATION_ON_W. The AC did turned on. By pasting AC_MAIN_OPERATION_OFF_W a few times nothing happened but a "ping" sound from AC. After restarting the adapter, the AC turned off by pasting the command again. ⠀

It seems to work fine

Maybe my statement was too hasty. It only worked a few times in that way. Many times pasting the command, the AC did nothing but a ping sound. Rare times the command worked after restarting the adapter. It seems to be randomly. I can't recognize a pattern. I think, we are on the right way but have to find out how to use the commands correctly. ⠀

@deejay808 So far I have no .remote folder and the lg-thinq.0.xxxx-xxx-xxx-.langPackProductTypeUri is empty

Here is the langPackProductTypeUri.txt. Have you tried to remove and reinstall the adapter because of the missing remote channel?

How did you get the langPackProductTypeUri.txt file? In my view that object is empty.

deejay808 commented 2 years ago

I looked at the content of the url that is contained in lg-thinq.0.270e9f10-6a31-11dc-9611-a06faa6f6833.modelJsonUri (content = https://eic.lgthinq.com:46030/api/webContents/modelJSON?modelName=modelJSON_401&countryCode=KR&contentsId=270e9f10-6a31-11dc-9611-a06faa6f6833&authKey=thinq) and I found the following in that file

Screenshot 2021-11-23 at 11 20 28

:

LuckyStrikeSlv commented 2 years ago

How did you get the langPackProductTypeUri.txt file? In my view that object is empty.

It's simple: In my view it was not empty ;-) I saved it as txt. It looks like the commands are the same and it should be possible to send theese commands to the device or server. I don't know how the LG API works.

Inoticed when the AC is turned on using iobroker, I can no longer control it with the LG Thinq app.

Exactly the same here...

GreatSUN commented 2 years ago

Hey guys... I have tried using the current adapter, but always getting the following error: lg-thinq.0 | 2022-02-23 13:24:15.910 | error | {"error":{"request":"/emp/v2.0/account/session/email@domain.com","code":"MS.001.10","message":"Already in use by 3rd-Party Registeration:GGL"}} lg-thinq.0 | 2022-02-23 13:24:11.757 | info | starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.lg-thinq, node: v14.19.0, js-controller: 3.3.22

Can someone help here?

Thanks, Stefan

GreatSUN commented 2 years ago

Found the solution... You need to have a direct LG Account rather than being registered through Google or Apple or likewise. You can register with the same E-Mail directly to LG and request invitation to an existing Home, then switch accounts and approve it.