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
69.03k stars 28.28k forks source link

Authentication method of hydrawise appears to have changed #116830

Closed arohl closed 6 days ago

arohl commented 1 week ago

The problem

I upgraded to 2024.5 and the hydrawise integration requested that I reauthenticate. It asks for a username and password, despite the docs saying it is requesting an API key. I can't try the username/password to see if that works as I am using apple authentication with the hydra wise app which doesn't use passwords. Either there is a bug and it should be asking for my API key, or there has been a major change which should be reflected in the documentation.

What version of Home Assistant Core has the issue?

core-2024.5.1

What was the last working version of Home Assistant Core?

core-2024.4.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

hydrawise

Link to integration documentation on our website

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

Diagnostics information

No response

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 week ago

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

Code owner commands Code owners of `hydrawise` 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 hydrawise` 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)


hydrawise documentation hydrawise source (message by IssueLinks)

dknowles2 commented 1 week ago

https://github.com/home-assistant/home-assistant.io/pull/32488 never got merged. I'll resend later today on the main branch.

dknowles2 commented 1 week ago

The new Hydrawise API does not use the API key for authentication and instead uses username/password authentication. It looks like it may also support OAuth (which I assume is how Apple & Facebook logins work), but I'll need to poke at it a bit to figure out how it works, as it's not documented well by Hydrawise.

arohl commented 1 week ago

Many thanks for the update @dknowles2 - in the meantime I will see if it is easy to change the authentication of my account and if it is, am happy to add to the documentation

arohl commented 6 days ago

I didn't find a way to change the authentication method of my account but I did find that once logged in using my AppleID, I could create a new user by providing an email address and give them read and write access. Then go to the web portal and choose forgot my password and type in the email address of the new user. Then you can click on the link in the email sent to this address and set the password. This combination of email address and password can then be used to authenticate the integration