openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[homeconnect] Bridge is online, but all connections 401 #16788

Closed mueller-ma closed 4 months ago

mueller-ma commented 5 months ago

I followed the guide in the docs, but I cannot make the homeconnect binding work.

Expected Behavior

When the bridge says "Online", it's working.

Current Behavior

The bridge Thing is Online and /homeconnect looks like this:

grafik

However no appliances show up and the Thing inbox is empty. Also a manual Thing scan for new Homeconnect things doesn't show up any appliances. grafik

grafik

Your Environment

runtimeInfo:
  version: 4.1.2
  buildString: Release Build
lsiepel commented 5 months ago

When you clicked the authorized bridge button and you completed the steps on the remote site, did you enter the same emailadres as you use in the homeconnect app or the emailadres of your developer account ?

mueller-ma commented 4 months ago

Yes, I used the same email adress for:

lolodomo commented 4 months ago

You can click on "API Requests" in the left menu to see all requests and which one is failing. This should give information of the reason.

mueller-ma commented 4 months ago

There are several requests with the same error code. One can be seen in the last screenshot in my first post here.

lolodomo commented 4 months ago

Oh sorry, I did not see it. Token is invalid because revoked. Strange, sorry I have no idea why it( does not work for you. How is set your redirect URL in your Home Connect app ?

mueller-ma commented 4 months ago

The URL is set to the one shown on the /homeconnect dashboard. Does it have to be reachable from the Home Connect servers?

lolodomo commented 4 months ago

Here is how it looks in my case: image

Does it have to be reachable from the Home Connect servers?

No. But it should be properly defined and should link to an OH URL. In my case: http://<OH IP>:8080/homeconnect

mueller-ma commented 4 months ago

I authorized the bridge again in a different browser. Now it's working. I guess the issue might be related to the enhanced tracking protection in Firefox, which I used before.

openhab-bot commented 2 days ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/home-connect-binding/49702/1093