Home Connect: alpha testers wanted

too bad :frowning_face: we should avoid relying on cloud services.

I’ll inspect my network packages to see what can I find.

1 Like

That’s the whole idea of Home Assistant, don’t rely on other parties right? “Your system should run at home, not in the cloud.” and “Reclaim your privacy”.

But keep up the good work with Home Connect, but connect locally :slight_smile:

I just set everything up but I get the following error when trying to register the integration:

{
  "error": "unauthorized_client",
  "error_description": "request rejected by client authorization authority (developer portal)",
  "state": "XXXXXXXXXXXXX"
}

any idea on what I’m doing wrong?

Are you using the most up-to-date version? I have changed many things in the past few days, also the redirect URI must be changed. The new version only works under HA 0.102.

Yes, I just installed everything fresh today:

Home Assistant 0.102
Home connect component via HACS: 0.2.1

DuckDNS HASSIO plugin:

{
  "lets_encrypt": {
    "accept_terms": true,
    "certfile": "fullchain.pem",
    "keyfile": "privkey.pem"
  },
  "token": "XXXXXXXXXXXX",
  "domains": ["AAABBBCCC.duckdns.org"
  ],
  "seconds": 300
}

to test that this is working I even forwarded the port 8123 in my router to 8123 of my HA which made my HA accessible from the internet via the DuckDNS adress:

The configuration.yaml looks like this:

http:
  base_url: https://AAABBBCCC.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

homeconnect:
  client_id: !secret homeconnect_username
  client_secret: !secret homeconnect_password

And in the developer account is set up like this:

Access: Private
OAuth Flow: Authorization Code Grant Flow
Redirect URIs: https://AAABBBCCC.duckdns.org:8123/auth/external/callback
One Time Token Mode: Disabled
Proof Key for Code Exchange: Disabled

That all looks correct, strange …

Can you please try the following script using directly the Python module to make sure it is unrelated to Home Assistant:

from homeconnect import HomeConnect
import webbrowser

client_id = "..."
client_secret = "..."
redirect_uri = "https://..."

hc = HomeConnect(client_id, client_secret, redirect_uri)
webbrowser.open(hc.get_authurl())

auth_result = input("Paste authentication URL")

hc.get_token(auth_result)
appl = hc.get_appliances()
print(appl)

@Kugelfang note that client_id and client_secret are not your HomeConnect username and password (as indicated by your !secret homeconnect_username, !secret homeconnect_password settings)

2 Likes

ok but what are they? I was providing my actual user login credentials (so not the dev ones)

Go to https://developer.home-connect.com/applications and click on “Details” for your application. It should show “Client ID” and “Client Secret (required)”.

1 Like

well that did the trick!!! thanks a lot

2 Likes

Hi, I think I fix it. I can now start the oven, but not start any program. Someone has a better Oven look I can use… This is my first post here…

Unfortunately, starting oven programs is not allowed by the API at present. It requires a separate approval of a client application, which they will not grant for private developer applications I guess.

Once the component becomes an official part of Home Assistant, thanks to the new OAuth2 account linking feature described in the 0.102 release notes, this might however become possible at some point.

This stopped working some time ago and I haven’t looked at it until now. Reinstalled via HACS and cannot make it work. edited the redirect url and even made a new app - no luck. I get nothing in the logs.

This worked at least a few months back. And from what I can see here I only should need to edit the redirect url?

“Nothing in the logs” cannot really be unless you somehow didn’t enable the componnent. There would be at least an error. After installing via HACS, did you

  • Add the necessary entries to configuration.yaml?
  • Add the integration on the “Integrations” panel in Home Assistant?

Thanks! I hadnt done anything in the integrations panel… Shame on me :confused: seems to work now :ok_hand:

1 Like

Hi, a quick question. Is it possible to get the error notifications from the appliances? Like the official app gets “Empty the condensation water tank”.

Not yet, I think it’s basically this: https://github.com/DavidMStraub/homeassistant-homeconnect/issues/42

But you could check whether, when your app displays this notification, there is anything in the attributes of the power switch (switch.coffee_maker or whatever). Basically I’m dumping the raw info from the API there, so it could be that it shows up (and that would be good to know).

Thanks for everybody’s feedback so far! I have just open a pull request into HA with the current version of the code. Let’s see how that goes. If it succeeds, we might eventually even be able to use the new account linking service.

3 Likes

That would be fantastic

Thank you so much for this integration @DavidMStraub

I set up Home Connect Integration yesterday according to the Instructions (via HACS as custom repo). Works flawlessly, however, perhaps my device is not supported yet or I have a problem of understanding.
My Home Connect Device (E-number TI9555X1DE/10) is listed in the Home Connect Integration list, but the provided sensors do not seem to be supplied with data.

See screenshots.

I am very happy that the integration will soon be merged into HA. I would also like to see a Lovelace card that represents the Home Connect devices (in my case the coffee machine) attractively in the UI.