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

Integration cannot log in today after HA restart. #155

Open
finalbillybong opened this issue Oct 2, 2024 · 5 comments
Open

Integration cannot log in today after HA restart. #155

finalbillybong opened this issue Oct 2, 2024 · 5 comments

Comments

@finalbillybong
Copy link

finalbillybong commented Oct 2, 2024

This error in my logs:

Logger: homeassistant.config_entries
Source: config_entries.py:604
First occurred: 16:40:40 (1 occurrences)
Last logged: 16:40:40

Error setting up entry [email protected] for hon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/haier_hon/__init__.py", line 73, in async_setup_entry
    await coordinator.device.load_commands()
  File "/config/custom_components/haier_hon/device.py", line 191, in load_commands
    self._appliance_model = commands.pop("applianceModel")
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'applianceModel'

This is using the latest release from yesterday.

@finalbillybong finalbillybong changed the title Integration cannot logi in today after HA restart. Integration cannot log in today after HA restart. Oct 2, 2024
@rothomas
Copy link

rothomas commented Oct 3, 2024

Maybe it’s coincidence, but I also ran into a similar problem with the integration yesterday. It turned out that the hOn API site was trying to force me to change my password and returning HTML. To see if you’re hitting the same issue:

  • Visit https://account2.hon-smarthome.com/SmartHome
  • Sign in with your hOn credentials.
  • If this is your problem, you’ll be sent to a password reset page.
  • If this is not your problem, you’ll be taken to a page with a big “My Profile” button.
  • If you have to reset your password, unfortunately it seems like you’ll have to remove and re-add the integration, because it does not expose a way to reconfigure the credentials.

This worked for me, and my integration is now working again.

@Kfrard
Copy link

Kfrard commented Oct 4, 2024

I noticed that hOn forces a password change every year.

@gvigroux
Copy link
Owner

gvigroux commented Oct 4, 2024

I need to try to handle this use case.

@slegars56
Copy link
Contributor

I faced off the same problem today after having restarted HA (same message in log) .
I've been able to fix it after a manual connection to the Hon app and deactivating /reactivating the Hon integration afterwards. Weird.
Note: I did not reset my password

@Lemonadel
Copy link

Maybe it’s coincidence, but I also ran into a similar problem with the integration yesterday. It turned out that the hOn API site was trying to force me to change my password and returning HTML. To see if you’re hitting the same issue:

  • Visit https://account2.hon-smarthome.com/SmartHome
  • Sign in with your hOn credentials.
  • If this is your problem, you’ll be sent to a password reset page.
  • If this is not your problem, you’ll be taken to a page with a big “My Profile” button.
  • If you have to reset your password, unfortunately it seems like you’ll have to remove and re-add the integration, because it does not expose a way to reconfigure the credentials.

This worked for me, and my integration is now working again.

You are life saver!
I tried to set up again Hon in HA but had authentication errors in logs, however could log in mobile app without any problems.
But when I logged in this site I was prompted for password change and then could auth in HA properly and log in to mobile app as well... really really messed up on Hon side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants