home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.92k stars 29.57k forks source link

MyUplink requires "Make changes to your system" application credentials #121799

Open Pyrdon opened 1 month ago

Pyrdon commented 1 month ago

The problem

I want to be able to connect to My Uplink to get status of my heat pump, but not make any changes. It however fails to authenticate unless I also include the "Make changes to your system" credential. Screenshot_20240711_203926_Home Assistant Following this the integration says "Failed to setup: Incorrect OAuth2 scope"

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

MyUplink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/myuplink

Diagnostics information

Diagnostics.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @pajzo, @astrandb, mind taking a look at this issue as it has been labeled with an integration (myuplink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `myuplink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign myuplink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


myuplink documentation myuplink source (message by IssueLinks)

astrandb commented 1 month ago

This message is intentional. The integration is designed for monitoring AND control of myUplink devices.

As a workaround you can create an additional account with myUplink and share access from your main account in read-only mode to your new account.. Then create API credentials (R/W) in your new account and use those in HA.

Pyrdon commented 1 month ago

Well there is no error message saying why the authentication process was not accepted. I would expect it to indicate it needs the change permissions or support not allowing it. As it is now it took me a while and lots of trial and error to discover this was the root cause.