Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.22k stars 2.5k forks source link

Authentication failed due to outdated password #196

Open pfeifferch opened 3 weeks ago

pfeifferch commented 3 weeks ago

Describe the bug Authentication in the hOn Addon has failed for a few days. In the debug log there was an embedded page with the content that the password had not been changed for too long. After I opened the website and set a new password, the login now works again.

It would be desirable if the error (old password) is reported in the addon and the link to the Haier page Is shown.

I do not include the protocol because it contains too much personal data

LucidityCrash commented 2 weeks ago

I think it may be worse ... I used the app on my to change the password but after that I'm not actually able to log on even just using the app. I just get the "spinning" hOn icon ... if I use pyhOn using my old password I get an auth error and if I use the new password I set I get a 400 error

{'error': {'message': 'Requested resource not found', 'code': 'ResourceNotFoundException', 'time': '2024-04-18T09:31:36.530Z', 'requestId': 'FTP5VB5SAJ8HM8K9H69289M0VFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'statusCode': 400, 'retryable': False, 'retryDelay': 28.412991827015865}}

which I'm guessing is what is happening in the App. Obviously using the integration isn't working either since it is using pyhOn in the background. Looking at the logs for this morning I can see 9 failed login attempts ... I noticed on the app if I put in the wrong credentials it says "Invalid credentials: the number of login attempts remaining to the account suspension is 9" I'm wondering if my account has now been locked.

If this is the case I would say this integration needs to stop attempting authentication if it starts getting back an auth failed message from the previous attempt. No idea how to achieve this though.