Logon process errors if hOn send var changePassword response at logon
Describe the bug If hOn require me to change my password at ‘next logon’ for any reason, the integration errors when I try to log in.
To Reproduce Steps to reproduce the behaviour:
As a USER I followed the instructions to setup the integration (that you publish). I entered my email address and password. I got an error from within the integration.
Looking at the logs, attached, I can see hON was forcing me to do a password reset. You can see the is in the logs.
Expected behavior I should be prompted to change password.
Environment (please complete the following information):
-
Home Assistant Version: [e.g.
2023.6.1] 2025.1.2 -
hOn Integration Version
-
0.14.0
-
pyhOn Version [e.g.
0.13.1, can be found in device log]
Additional context Add any other context about the problem here.
Home Assistant Logs
Check System -> Logs if you can find any logs related to this integration and post it here.
home-assistant_hon_2025-01-12T13-17-48.330Z.log
Device Log Post your device info here (if available)
- Enable the "Show Device Info" button This button can be found in the diagnostic section of your device or in the entity overview if "show disabled entities" is enabled.
- Press the button to create a notification
- Open home assistant notifications and copy the message (Crtl+A, Ctrl+C)
Data Archive
For further analysis, please add your appliance data archive here (if available)
Navigate to Settings -> Device & Services -> Haier hOn -> your device and press the Create Data Archive button.
Then open notifications to download the data zip archive.
To attach the file:
- GitHub Web: Use the "Attach files by dragging & dropping, selecting or pasting them." function
- GitHub Mobile: Upload the zip archive as image
Possible Fix To resolve this issue I went to: https://account2.hon-smarthome.com/ (as found in your logs)
Logged in with my existing details. Completed the force change password process.
Go back to your integration and delete / re-add profile, using NEW password.
Please can you look at the RESPONSE sent back and when you see:
This is the point you need to display a message saying “hON need you to update and change your password, please click this link:
https://account2.hon-smarthome.com/
Log in with your current details you just entered, update you password then come back here and press RETRY
At this point, you will need to loop back to the “enter email address and password” screen.
Hope this helps!
Thank you this worked for me too :)
yep, worked