core icon indicating copy to clipboard operation
core copied to clipboard

Authentication method of hydrawise appears to have changed

Open arohl opened this issue 1 year ago • 4 comments

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

arohl avatar May 05 '24 02:05 arohl

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)

home-assistant[bot] avatar May 05 '24 02:05 home-assistant[bot]

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

dknowles2 avatar May 05 '24 13:05 dknowles2

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.

dknowles2 avatar May 05 '24 16:05 dknowles2

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 avatar May 06 '24 03:05 arohl

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

arohl avatar May 12 '24 09:05 arohl