Integration with Minut Point?

localhost should be your home-assistant address.

Could you send some screenshots whatā€™s going on?

This is the error message I get after I click the authentication link from the integration setup.

{"message":"Unable to issue redirect for OAuth 2.0 transaction","code":"server_error","status":500,"name":"AuthorizationError","error_key":"internal_server_error"}

Hereā€™s a screenshot of the redirect url on the Minut api page.

Iā€™m out of my depth here, but this page describes a change to how OAuth 2.0 handles redirects. Perhaps helpful? Unable to issue redirect for OAuth 2.0 transaction - login - Auth0 Community

It could be that you need a https connectionā€¦

Do you access your homeassistant instance via http://homeassistant.local:8123 ?

Yes, I can access it without a secure connection. The error message is different if thereā€™s a mismatch between (1) the allowed redirect uri as set on the minut web app and (2) the url Iā€™m using to access home assistant. It gives a redirect_uri_mismatch error. The error message in my previous post is the error message it shows when everything appears to be properly configured.

Is it possible this has to do with failing to pass a redirect_uri parameter? OAuth 2.0 now appears to require it per my post above?

If I copy the link in the image below and manually add the proper redirect_uri, a web page opens saying ā€œOK!ā€ with a token code in the URL.
image

1 Like

Iā€™ll try to update the integration with this!

Thanks for finding it!

Hi, has this been resolved? Iā€™m still not seeing the redirect_uri parameter added which is mandatory as per the Minut API doco.at Minut API documentation.

Adding it manually does return to the HA home page but entities are not being generated.

I would also like to get this working. Still having authentication issues.

There are a discussion on whatā€™s going on here: Unable to setup authentication with Minut Point Ā· Issue #91583 Ā· home-assistant/core (github.com)

TLDR;
Iā€™ve fixed the missing redirect_uri in the configuration flow, the problem is that the whole configuration flow needs to be re-written to support oauth2 flow and Iā€™ve not had time to do this.

1 Like

Is there anything I/we can help out with to get this working properly?

Not really. I just need a few hours without the family asking for my attention (perhaps send them bowling or on a movie could give me the necessary time).


Buy Me A Coffee
1 Like

Just a teaser, this is how far I am.

Had to contact Minut to set another redirect_uri (the new one should be: Link to OAuth2 Authorize Callback ā€“ My Home Assistant) as Iā€™m an old Kickstarter backer. If someone have a pro-account send me a PM with CLIENT_ID/CLIENT_SECRET and Iā€™ll continue the work.

So, I have a draft on how to fix the oauth2 issues now.

Still plenty to fix to get it up to standards.

@Ferretmonger et.al.:
Please have a look at the updated documentation, Minut Point - Home Assistant. Does it make sense?

Edit, updated link to documentation.

1 Like

Did someone send you the CLIENT_ID/CLIENT_SECRET for you to test?

I got in contact with Minut so they have updated my Client-credentials.

The code in #118243 works fine on my computer. I just need to fix tests and migration from the old config to new.

2 Likes

Iā€™m still waiting for a review of the PR so we could get the fixes for Point merged. I do not know whatā€™s taking so longā€¦

1 Like

Thanks for the update, Iā€™m glad the team I run donā€™t take this long to do a code review. i guess I need to remember that this is volunteers.

2 Likes

Is it working for everyone now?

1 Like