Contribution - LG ThinQ Binding

Hi there, thanks, I’m aware of that → not possible for this particular binding (e.g. the “astro” binding has that blue gear icon you mentioned).

Why not ?
Marketplace Bindings are shown in the UI and have that icon.

Can’t tell :wink:


Thats strange.
Tried it yesterday with a different Marketplace Binding and saw the little gear icon. Today, it is gone…
Third Party Marketplace Bindings like Smathome/J Tuya Binding still have this icon…
We will have to check……

@florian-h05 Do you have an idea what’s wrong here ???

The UI decides in openhab-webui/bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue at 8e357f40df7200cf7b87e3fe79a1d5ef1b912938 · openhab/openhab-webui · GitHub whether to show the config gear based on the addon info that is loaded in openhab-webui/bundles/org.openhab.ui/web/src/pages/addons/addon-details.vue at 8e357f40df7200cf7b87e3fe79a1d5ef1b912938 · openhab/openhab-webui · GitHub.

Can you please check the browser network tab (browser dev tools) for a request to

/rest/addons/someAddonId?serviceId=someOptionalServiceId

and share the response here?

And probably ping me in the answer so I notice it.

@florian-h05
A query of /rest/addons to get all bindings does not list any Marketplace Bindings.
Even trying

/rest/addons/marketplace%3A158233

for the LGThinQ Binding lead to a 404…

Is that what the UI does when opening the add-on detail page for this binding?

@florian-h05

This is what I see in network console:

Anforderungs-URL:
http://192.168.1.22:8080/rest/addons/marketplace:158233?serviceId=marketplace
Anforderungsmethode:
GET
Statuscode:
200 OK
Remoteadresse:
192.168.1.22:8080
Referrer-Richtlinie:
strict-origin-when-cross-origin
content-encoding:
gzip
content-type:
application/json
date:
Thu, 12 Sep 2024 09:08:36 GMT
server:
Jetty(9.4.54.v20240208)
transfer-encoding:
chunked
vary:
Accept-Encoding, User-Agent
accept:
application/json
accept-encoding:
gzip, deflate
accept-language:
de,de-DE;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
authorization:
Bearer eyJraWQiOm51bGwsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJvcGVuaGFiIiwiYXVkIjoib3BlbmhhYiIsImV4cCI6MTcyNjEzNTM1MywianRpIjoiUXdWMmZUaFVVOXZZemdpTXZfSVlEZyIsImlhdCI6MTcyNjEzMTc1MywibmJmIjoxNzI2MTMxNjMzLCJzdWIiOiJhZG1pbiIsImNsaWVudF9pZCI6Imh0dHA6Ly8xOTIuMTY4LjEuMjI6ODA4MCIsInNjb3BlIjoiYWRtaW4iLCJyb2xlIjpbImFkbWluaXN0cmF0b3IiXX0.MQtos1YVNeeh8q1XljAvGFWz4Q_TCxRv1UlDk3Wp3Vhl9NDBw-8umcfpUlwf89X8MkY7Hk38Ox3IXWyLzjCoV0nC-qG6QYBcyxe3ZxQIx0k4wzvwQYvqoT67jaw42SQoNyM9wtWgMQH0vf4qSC6gVis64dD1f_hJTZIHP2sAbdWWztS8y4AG94dV9JQf4lL3mXb5Gv3BrhUvGBQkaheGQs4R7jJpJhJNn2guR2ZRfUtF2FcNShNklGSEPlDJF9ACKA5K_kw8Hbo5-WSv8a2LZWVjYF4QD3YqR3WqVO_SoPtuyNa-ZzkW8ugmgmqAJ6_ECbR1vuw0bjV4KK2rf8vuFA
connection:
keep-alive
cookie:
csm-hit=tb:YE3PNYVT9BR2GWNSJGKA+s-YE3PNYVT9BR2GWNSJGKA|1709027478073&t:1709027478073&adb:adblk_no; X-OPENHAB-SESSIONID=9196558f-67c7-4e34-84ec-836354f9640e
dnt:
1
host:
192.168.1.22:8080
referer:
http://192.168.1.22:8080/addons/binding/marketplace:158233
user-agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/128.0.0.0
x-requested-with:
XMLHttpRequest

Thanks, no 404 this time.
What’s the response?

@florian-h05

I hope this is what you are looking for

{
    "uid": "marketplace:158233",
    "id": "lgthinq",
    "label": "LG Thinq Binding",
    "version": "",
    "maturity": "beta",
    "compatible": true,
    "contentType": "application/vnd.openhab.bundle",
    "link": "https://community.openhab.org/t/158233",
    "author": "Nemer Daud",
    "verifiedAuthor": false,
    "installed": true,
    "type": "binding",
    "detailedDescription": "\u003cp\u003e\u003cimg src\u003d\"https://raw.githubusercontent.com/nemerdaud/openhab-thinq-stuff/main/lgthinq.png\" alt\u003d\"LG Thinq Binding\" width\u003d\"153\" height\u003d\"131\"\u003e\u003c/p\u003e\n\u003cp\u003eThis binding was developed to integrate the LG ThinQ API with openHAB.\u003cbr\u003e\nThe ThinQ Thinq Binding works as a hub/bridge to discovery and first configure the LG ThinQ devices related with the LG’s user account.\u003cbr\u003e\nThus, the first thing is to create the LG ThinQ Bridge and then, it will discover all Things you have related in your LG Account.\u003cbr\u003e\nPlease, read the \u003ca href\u003d\"https://github.com/nemerdaud/openhab-addons/raw/feature/lgthinq-binding/bundles/org.openhab.binding.lgthinq/README.md\" rel\u003d\"noopener nofollow ugc\"\u003eREADME\u003c/a\u003e for more details.\u003c/p\u003e\n\u003ch2\u003e\u003ca name\u003d\"p-903500-changelog-1\" class\u003d\"anchor\" href\u003d\"#p-903500-changelog-1\"\u003e\u003c/a\u003eChangelog\u003c/h2\u003e\n\u003ch3\u003e\u003ca name\u003d\"p-903500-version-01-2\" class\u003d\"anchor\" href\u003d\"#p-903500-version-01-2\"\u003e\u003c/a\u003eVersion 0.1\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003einitial release\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003e\u003ca name\u003d\"p-903500-resources-3\" class\u003d\"anchor\" href\u003d\"#p-903500-resources-3\"\u003e\u003c/a\u003eResources\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eBundle: \u003ca href\u003d\"https://github.com/nemerdaud/openhab-thinq-stuff/raw/main/org.openhab.binding.lgthinq-4.3.0-SNAPSHOT.jar\" rel\u003d\"noopener nofollow ugc\"\u003ehttps://github.com/nemerdaud/openhab-thinq-stuff/raw/main/org.openhab.binding.lgthinq-4.3.0-SNAPSHOT.jar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eSource code: \u003ca href\u003d\"https://github.com/nemerdaud/openhab-addons/tree/feature/lgthinq-binding/bundles/org.openhab.binding.lgthinq\" class\u003d\"inline-onebox\" rel\u003d\"noopener nofollow ugc\"\u003eopenhab-addons/bundles/org.openhab.binding.lgthinq at feature/lgthinq-binding · nemerdaud/openhab-addons · GitHub\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e",
    "configDescriptionURI": "",
    "keywords": "",
    "countries": [],
    "connection": "",
    "properties": {
        "jar_download_url": "https://github.com/nemerdaud/openhab-thinq-stuff/raw/main/org.openhab.binding.lgthinq-4.3.0-SNAPSHOT.jar",
        "like_count": 3.0,
        "updated_at": "2024-09-06T10:40:38.178Z",
        "created_at": "2024-09-06T10:39:56.074Z",
        "views": 38.0,
        "posts_count": 1.0,
        "tags": [
            "binding",
            "published",
            "beta"
        ]
    },
    "loggerPackages": []
}

This is exactly what I was looking for, thanks … it confirms my assumption that this is no UI problem but a core problem.
Both configDescriptionURI and loggerPackages are empty, so for the UI there is nothing to show.

I have no experience with the core part of the add-on store, probably consider to ping Jan if there is an issue.

@florian-h05 Thanks, will do…

1 Like

Hej there,

using the 4.3.0 snapshot from above I get the following error:

23:17:43.119 [DEBUG] [internal.handler.LGThinQBridgeHandler] - Error accessing LG API. Updating Bridge Status to OFFLINE.
org.openhab.binding.lgthinq.lgservices.errors.LGThinqGatewayException: Error trying to discovery the LG Gateway Setting for the region informed
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:102) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.internal.handler.LGThinQBridgeHandler$PollingRunnable.run(LGThinQBridgeHandler.java:136) [bundleFile:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.IllegalArgumentException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: java.util.LinkedHashMap["result"])
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4624) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4565) ~[bundleFile:2.17.1]
	at org.openhab.binding.lgthinq.lgservices.api.LGThinqCanonicalModelUtil.getGatewayResult(LGThinqCanonicalModelUtil.java:37) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.OauthLgEmpAuthenticator.discoverGatewayConfiguration(OauthLgEmpAuthenticator.java:136) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:99) ~[bundleFile:?]
	... 7 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: java.util.LinkedHashMap["result"])
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1446) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.extractScalarFromObject(DeserializationContext.java:958) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseString(StdDeserializer.java:1441) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:48) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:623) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:449) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:32) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4619) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4565) ~[bundleFile:2.17.1]
	at org.openhab.binding.lgthinq.lgservices.api.LGThinqCanonicalModelUtil.getGatewayResult(LGThinqCanonicalModelUtil.java:37) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.OauthLgEmpAuthenticator.discoverGatewayConfiguration(OauthLgEmpAuthenticator.java:136) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:99) ~[bundleFile:?]
	... 7 more

The language settings are okay. Can you give me any other hint what is wrong here?

Hej there,

I just digged a little bit into the TRACE and DEBUG logs of the bindings. In parallel I looked a little bit into the api description and how e.g. homeassistant implement the Thinq Api.

So far it seems, that the new/best/recent/stable option for the API is a one where you need a OAUTH Key that has to be coupled to the code.

This might explaint the problem with the installation.

I started the binding with log level TRACE
The resultCode is ‘0000’ which should mean ‘Success’ and the result itself seems very informative. So, is it possible, that there is something wrong in parsing that message due to the deserialize error?

09:50:45.020 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'lgthinq:bridge:f0b294753d' changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): @text/error.lgapi-communication-error
09:50:46.948 [TRACE] [ding.lgthinq.lgservices.api.RestUtils] - GET request: https://route.lgthinq.com:46030/v1/service/application/gateway-uri
09:50:47.009 [TRACE] [ding.lgthinq.lgservices.api.RestUtils] - GET response: {"resultCode":"0000","result":{"countryCode":"DE","languageCode":"de-DE","thinq1Uri":"https://eic.lgthinq.com:46030/api","thinq2Uri":"https://eic-service.lgthinq.com:46030/v1","empUri":"https://de.m.lgaccount.com","empSpxUri":"https://de.m.lgaccount.com/spx","rtiUri":"eic.lgthinq.com:47878","mediaUri":"eic-media.lgthinq.com:47800","appLatestVer":"5.0.36130","appUpdateYn":"N","appLink":"market://details?id=com.lgeha.nuts","nestSupportAppVer":"","uuidLoginYn":"N","lineLoginYn":"N","lineChannelId":"","cicTel":"01806-115411","cicUri":"","isSupportVideoYn":"N","countryLangDescription":"Deutschland/Deutsch","empTermsUri":"https://de.emp.lgsmartplatform.com","googleAssistantUri":"https://assistant.google.com/services/invoke/uid/000000d26892b8a3","smartWorldUri":"","racUri":"de.rac.lgeapi.com","cssUri":"https://eic-common.lgthinq.com","cssWebUri":"http://s3-an2-op-t20-css-web-resource.s3-website.ap-northeast-2.amazonaws.com","iotssUri":"https://eic-iotservice.lgthinq.com","chatBotUri":"","autoOrderSetUri":"","autoOrderManageUri":"","aiShoppingUri":"","onestopCall":"08004544445","onestopEngineerUri":"https://svcthinq.com/global/repairRequest.html","hdssUri":"https://eic-hdss.lgthinq.com:47040","amazonDrsYn":"N","features":{"wifiScanDelay":"3000","supportTvIoTServerYn":"Y","nonProductThemes":"GIF,FOM","nonWifiQrSupportYn":"Y","matter12YN":"Y","shareAccountYn":"Y","androidAutoYn":"Y","newFrontReEULAYn":"Y","searchYn":"Y","thinqFaq":"Y","multiProfile":"Y","eventAutoScrollYn":"Y","supportBleYn":"Y","tvWidgetYn":"Y","pccPushProd":"101,102,103,201,202,203,204,222,301,302,303,401,402,501,504","pccWarrantyProd2":"101,102,103,104,105,106,201,202,203,204,206,222,223,301,302,303,304,401,402,403,405,406,407,408,409,410,501,504,601,603,10000,20408,30101,30102,50402,90000","thinqCss":"Y","pccRegisterProd":"101,102,103,104,105,106,201,202,203,204,222,223,301,302,303,304,401,402,403,405,406,407,408,409,410,501,504,601,603,20408,30101,30102","eventCardYn":"Y","mixPanelCrashEnableYn":"Y","tvRcmdContentYn":"Y","deviceSuggestionLevel":"3","awhpWidgetFeatureYn":"Y","pccMyPageYn":"Y","reportTabYn":"Y","tvFeatureYn":"Y","ewBannerYn":"Y","thinqNotice":"Y","googleMenuYn":"Y","inAppReviewYn":"Y","pccNoticeAgreement":"N","cicSupport":"Y","pccReceiptRegister":"Y","ewAvailableProdTypes":"101,201,202,401,10000","qrRegisterYn":"Y","regiHapticfeedback":"Y","tvCastYn":"Y","bleConfirmYn":"Y","personalSettingImprovementYn":"Y","onlyQrNearConfirmYn":"Y","awhpWidgetYn":"N","shortcutPromotionYn":"Y","energyMonitoringYn":"Y","updateTermsTimeout":"10000","groupControlYn":"Y","supportQRPlaceGuideYn":"Y","wifiInfoFeature":"Y","pccWarrantyProd":"101,102,103,104,105,106,201,202,203,204,222,223,301,302,303,304,401,402,403,405,406,407,408,409,410,501,504,601,603,20408,30101,30102","empFrontProfileYn":"Y","careModelJson":"Y","disableWeatherCard":"N","pccRegAPIVer":"2","pccModelCategory":"N","supportProductManualYn":"N","apiServerTimeoutSeconds":"60","pccPush":"Y","pccRegisterProd2":"101,102,103,104,105,106,201,202,203,204,206,222,223,301,302,303,304,401,402,403,405,406,407,408,409,410,501,504,601,603,10000,20408,30101,30102,50402,90000","clientDbYn":"Y","pccWarranty":"Y","thinqCareIntegratedSD":"Y","analyticsCookieYn":"Y","availableTPM":"registration,onboard,search,homeSetting,pushList,pushSetting,productMove","wifiScanPolicyForSoftAp":"default","energyUsageSection":"0,5,10,15,25,35,50,100,300","dmpCollectingYn":"N","uxUpdatePopupYn":"N","smartScanWineHelpYn":"Y","pccWarrantyPeriodType":"M","closeAppDelayTimeSec":"1"},"serviceCards":[],"uris":{"ItssUri":"https://eic-it-service.lgthinq.com","empOauthBaseUri":"https://de.lgeapi.com","amazonAlexaLearnMoreUri":"https://www.amazon.de/b?node=26247094031","takeATourUri":"https://s3-eu1-op-t20-css-contents.s3.eu-west-1.amazonaws.com/workexperience-new/ios/no-version/index.html","globalObsUrl":"https://www.lg.com/de?utm_source=thinqapp&utm_medium=outlink&utm_campaign=2022HQ-SmartTV_DE","empBackendBaseUri":"https://de.emp.lgsmartplatform.com/","onboardUri":"https://thinq-onboard-dashboard.lgthinq.com","lmpOAuthUri":"https://de.thinq.lid.lge.com","faqProductLinkUrl":"https://www.lg.com/de/support/","temsUri":"https://eic.energy.lgthinq.com/","careSmartDiagUri":"https://eic-hcss.lgthinq.com:47040","hdssUri":"https://eic-hdss.lgthinq.com:47040","tcnHdssUri":"https://eic-api.lgthinq.com/care","serviceDownloadUri":"https://service-download.lgthinq.com","gscsUri":"https://gscs-eu.lge.com","careSdsUri":"https://eic-hcss.lgthinq.com:47040","empFrontBaseUri2":"https://de.lgemembers.com/lgacc/service/v1/","ewGuideUri":"https://gscs.lge.com/gscs/collpack/contents/readChatbotContents.do?contentsId=20153803870500","ewPremiumCareUrlOutlink":"https://www.service-lg.com/lg/Welcome?l=de-DE","empFrontBaseUri":"","amazonDartUri":"https://shs.lgthinq.com"}}}
09:50:47.013 [DEBUG] [internal.handler.LGThinQBridgeHandler] - Error accessing LG API. Updating Bridge Status to OFFLINE.
org.openhab.binding.lgthinq.lgservices.errors.LGThinqGatewayException: Error trying to discovery the LG Gateway Setting for the region informed
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:102) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.internal.handler.LGThinQBridgeHandler$PollingRunnable.run(LGThinQBridgeHandler.java:136) [bundleFile:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.IllegalArgumentException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: java.util.LinkedHashMap["result"])
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4624) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4565) ~[bundleFile:2.17.1]
	at org.openhab.binding.lgthinq.lgservices.api.LGThinqCanonicalModelUtil.getGatewayResult(LGThinqCanonicalModelUtil.java:37) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.OauthLgEmpAuthenticator.discoverGatewayConfiguration(OauthLgEmpAuthenticator.java:136) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:99) ~[bundleFile:?]
	... 7 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: java.util.LinkedHashMap["result"])
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1446) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.DeserializationContext.extractScalarFromObject(DeserializationContext.java:958) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseString(StdDeserializer.java:1441) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:48) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:623) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:449) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:32) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4619) ~[bundleFile:2.17.1]
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4565) ~[bundleFile:2.17.1]
	at org.openhab.binding.lgthinq.lgservices.api.LGThinqCanonicalModelUtil.getGatewayResult(LGThinqCanonicalModelUtil.java:37) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.OauthLgEmpAuthenticator.discoverGatewayConfiguration(OauthLgEmpAuthenticator.java:136) ~[bundleFile:?]
	at org.openhab.binding.lgthinq.lgservices.api.TokenManager.oauthFirstRegistration(TokenManager.java:99) ~[bundleFile:?]
	... 7 more

The config settings for the bridge are:

UID: lgthinq:bridge:f0b294753d
label: LGThinQ GW Bridge
thingTypeUID: lgthinq:bridge
configuration:
  country: DE
  password: <isCorrect>
  poolingIntervalSec: 86400
  language: de-DE
  username: <isValid>

Are there any things I can do to help to figure out whats happening there? Playing around with curl?

And sorry please ignore my last post as this now seems not correct. Sorry.

The binding is passing through a review to be available officially in the addons supported by OpenHab. Thus, I’m changing some parts of the binding to fit the Owners needs and some times result in bugs that was not previously there.

It’s your case. Please, get the latest version of the binding from my repository or at the MarketPlace that this bug is fixes. Because of this changes, some channels and properties has been renamed, and if you have some Thing already configured for this binding, you have to remove it, rediscovery and recreate it. Sorry about that.

If you find other problem, do not hesitate to report !

Hej Nemer,
if you refered to my bug I have to tell that unforunately I get the same error message as above (result code “0000”) but a very promising json resonse … (see above)

Sorry… fixed other parts. Try again, please

Wohoooo! It works.
Login happen and I could add my device.
Thank you very much!

1 Like

is this also valid for the V0.3?
I would like to configure a HeadPump file based.

this was my config, it was working with a earlier version:

Bridge lgthinq:bridge:LGAccount "LG ThinQ Account"
    [	username="maxmustermann@yahoo.com",
		password="passwordd",
		language="--",
		manualLanguage="de_DE",
		country="--",
		manualCountry="AT",
		pollingIntervalSec=0 ] {

    401    HP    "LG ThinQ Heat Pump"    [ 
        device_id="XXXXXXXXXXXXX",
        model_url_info="https://objectcontent.lgthinq.com/XXXXXXXX",
        platform_type="thinq2",
		modelId="AWHP_019101_WW",
		device_alias="Air to Water Heat Pump",
        polling-period-poweron-seconds=10,
        polling-period-poweroff-seconds=10,
		polling-extra-info-period-seconds=60
    ]
}

i am getting now an error in the logs:

2024-12-16 19:17:46.736 [INFO ] [.thing.internal.GenericThingProvider] - No ThingHandlerFactory found for thing lgthinq:401:LGAccount:HP (thing-type is lgthinq:401). Deferring initialization.

in the gui, I only see one lg thing: