Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logon process errors if hOn send var changePassword response at logon #281

Open
antenna-one opened this issue Jan 12, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@antenna-one
Copy link

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)

  1. 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.
  2. Press the button to create a notification
  3. 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:

<script> var changePassword; Sfdc.onload(function() { changePassword = new Identity.ChangePasswordRequirements({ length: 8, letters: false, numbers: true, upper: true, lower: true, special: false, anythreeconditions: false }); }); </script>

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!

@antenna-one antenna-one added the bug Something isn't working label Jan 12, 2025
@locoroko
Copy link

Thank you this worked for me too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants