Home Connect Direct Binding (no cloud)

Hi Jonas,

I just downloaded the latest jar and, lo and behold, my dishwasher is online! Since de upgrade to 4.3 my washer and dryer are mostly offline. About every minute they become online for a second and go back offline.

This repeats about every minute:

I added the Things manually as they are on a different (iot) subnet. My washer is online in the Home connect app (by mistake, I disconnected them both from the cloud, at least I thought I did.)

Sorry, I fixed the links.

1 Like

That looks good already. The individual messages are all ok. Could you please send me the log.

Do you have a proxy or something similar between the individual networks? It seems to me that the appliance or the binding interrupts the websocket connection.

The setting after auto-detection shoes AES but the error says that TLS is not supported. I’ll send you the logs in a minute.

Whoops, I broke it.

I replaced the jar with the latest and decided to delete the profles, just to make sure it wasn’t some stupid cache issue. Now I’m unable to re-download my profiles. In the logs I see the following error:

2024-12-18 19:11:51.042 [ERROR] [nal.servlet.HomeConnectDirectServlet] - Could not fetch profile data! error=SingleKey ID OAauth2 authorization code missing!

When I change debug level to DEBUG I see the content of the api calls which is a lot of html.

In the HTML there is this:

 <title>Captcha - SingleKey ID</title>
        <meta name="description" content="A Captcha (“Completely Automated Public Turing test to tell Computers and Humans Apart”) is used to prevent form inputs by a robot or “bot”. Automated robot attacks may cause various problems including stopping a service from working by overloading a website with excessive requests.">

Could that be why it fails to (re) download profiles for my appliances?

There is no proxy, just nat/masquerade between the networks. (and a firewall of course but I don’t see anything being blocked related to this)

because I restarted the binding my logs are empty, so I cannot send them atm.
btw: Is there any specific/sensitive data in the logs?

Looks like it. Didn’t know that they have Captchas in Place. Need to think about it. In the meantime, you could try it again tomorrow.

1 Like

Hi Jonas,

thanks for your work! Installation of the binding snapshot into my openhab system worked like a charm! I own a Bosch Cleaning Robot and would like to help add this kind of devices to your binding.

kind regards,

Christoph

(reposted since i replied to the wrong topic in the first place)

Thank for the new version! I uninstalled the plugin 2 days ago and deleted all thinks because I had also troublle with the leak found by @holger_hees. Now, with the new version, I made a new start.
I will send you the log of stove and oven.
The dishwasher is still offline/disabled. Not possible to enable the thing. I will add also a log from the dishwasher.
I just realize that also the discovered config looks different to the other devices:

Here we go! :tada:

I’ve prepared a new version with the following updates:

  • Updated Conscrypt Library
    • Used for TLS connections
    • supported operation systems:
      • Linux (x86_64 and aarch64)
      • Windows (x86_64)
      • Mac OS (x86_64 and aarch64)
  • thing configuration cleanup (removed connectionType)

Download: org.openhab.binding.homeconnectdirect-4.3.0-1734711461.jar

@olialb, @Larsen, and other users with ARM-based hardware (e.g., Raspberry Pi),
could you please give this version a try?

Due to the holiday season, I might not be able to release updates as frequently. :christmas_tree:

Happy Holidays!
Jonas

5 Likes

seems to work perfectly:

  • all things online
  • channels available as expected
  • no errors in the log

Happy Christmas :grin: :evergreen_tree:

1 Like

Hi Jonas,

I removed the binding, waited 24 hours, installed the latest binding (4.3.0-1734711461) but unfortunately I’m still not able to download profiles. the captcha warning disappeared from the logs, it looks like a regular login page.

Apparently I exported the washer profile so I was able to import it again, for my dryer I created the zip myself (with information from hcpy) but it will not import, it produces a 500 error, not exactly sure why but that is ok.

My washer thing still comes online and directly goes offline again. This repeats every minute. I will check the log export for any sensitive information and send it to you.

Hello Jonas,

with the latest update my Dishwasher is OFFLINE.
Its showing error:

DISABLED
TLS connection is not supported on the current system configuration (Linux amd64).

With the previous version 4.3.0-1734537758 the Dishwasher was working well - using ConnectionType TLS - I fallback to this version.

OH is running in a Docker on QNAP NAS.
Let me know if you need more detailed informations to troubleshoot the issue.
Logfile will be sent by PM.

Happy Holidays :slight_smile:
Stefan

I upgraded to the new version …11461.jar.
The dishwasher is still discoverd but stays offline and I can not fetch the profile anymore.
The openhab log shows:

2024-12-21 12:06:44.240 [ERROR] [nal.servlet.HomeConnectDirectServlet] - Could not fetch profile data! error=SingleKey ID OAauth2 authorization code missing!

And in the UI it shows:

When I try to download the addon log for the Dishwasher it shows now:

Have a nice Christmas break! We hope for updates next year than @jb4711 !!

Can you please send me the zip file. Please replace the credential with xyz before sending it.

I think the SingleKey ID system added a Captcha-Check :frowning: That is hard to bypass. I think we need to think about another way of importing the the profiles.

Not sure if it is possible through an app registration? Does a client id and secret bypass SingleKey authentication? I have used this in the past but I cant remember what it was for.

https://developer.home-connect.com/applications/

Unfortunately, this doesn’t work because the mechanism pretends to be the app. Unfortunately, “normal” developers are not allowed to use the oAuth scope.

The hcpy project has the same problem. https://github.com/hcpy2-0/hcpy/issues/116

We will find a solution.

1 Like

I would not mind to solve a Captcha-Check when I need to fetch new profiles :wink: