home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.01k stars 31.05k forks source link

iAqualink issues when updating to Home Assistant 2023.7.1 Supervisor 2023.07.1 Operating System 10.3 Frontend 20230705.1 - latest #96112

Closed jd3073 closed 1 year ago

jd3073 commented 1 year ago

The problem

failed setup - iAqualink will not run

aqualink integration not ready yet: Error while attempting to retrieve devices list: ; Retrying in background

issue when updating to this: Home Assistant 2023.7.1 Supervisor 2023.07.1 Operating System 10.3 Frontend 20230705.1 - latest

No problem prior to 7.1 update

What version of Home Assistant Core has the issue?

7.1

What was the last working version of Home Assistant Core?

6.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

iAqualink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/iaqualink

Diagnostics information

[iaqualink] Status for system ######### is Offline. 2023-07-07 09:59:12.040 WARNING (MainThread) [homeassistant.config_entries] Config entry '##########' for iaqualink integration not ready yet: Error while attempting to retrieve devices list: ; Retrying in background 2023-07-07 09:59:22.442 WARNING (MainThread) [iaqualink] Status for system ######### is Offline.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

[iaqualink] Status for system ######### is Offline.
2023-07-07 09:59:12.040 WARNING (MainThread) [homeassistant.config_entries] Config entry '##########' for iaqualink integration not ready yet: 
Error while attempting to retrieve devices list: ; Retrying in background
2023-07-07 09:59:22.442 WARNING (MainThread) [iaqualink] Status for system ######### is Offline.

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @flz, mind taking a look at this issue as it has been labeled with an integration (iaqualink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `iaqualink` 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 iaqualink` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


iaqualink documentation iaqualink source (message by IssueLinks)

joostlek commented 1 year ago

The integration didn't change majorly in the latest release (only a small thing was modified, but that shouldn't cause this). Can you verify your system is online? The integration does seem able to get the list of systems, but not the list of devices.

jd3073 commented 1 year ago

Thanks for the quick response on this. I can log into iAqualink via the App & website, so server is online and working. Home Assistant integration fails load and does not find device/entities, where previously it did. I am re-installing previous version (going back to 6.3) to confirm that still works and its not something else entirely.

flz commented 1 year ago

I just upgraded to 2023.7.1 and not seeing any issue. Maybe it was a transient error? Did you try reloading the integration or restarting home assistant?

jd3073 commented 1 year ago

@flz - thanks for responding, glad yours is working. Must be issue on my end. No network changes and can access Jandy/iAqualink with App and via website with HA previously connecting without issue. If I uninstall/re-install iAqualink it accepts username/pw but stops there - does not detect devices and so my dashboards fail. Open to any suggestions or ideas to reconnect iAqualink.

Screenshot 2023-07-07 at 11 56 15 AM
flz commented 1 year ago

I'd recommend enabling debugging for the integration and the underlying library and restarting HA. It's going to be difficult to diagnose further without it.

jd3073 commented 1 year ago

Thanks again FLZ. So I've enabled debugging and restarted it. The only odd thing in the log I'm finding is: [iaqualink] Status for system *** is Offline. I'll give it a few days, reboot everything and hopefully it is transient as you suggested, otherwise I'll disable and just use the webserver.

flz commented 1 year ago

This would seem to indicate that the integration is working and the iaqualink backend is telling you the system is unreachable. I've seen this happen in the past when I had multiple iaqualink clients running at the same time (e.g. iaqualink app, prod home assistant and test home assistant instance).

jd3073 commented 1 year ago

That makes sense, so I've logged out of all clients contacting Jandy/iAqualink and uninstalled the integration, shutdown RasPi, restarted and reinstalled Jandy iAqualink but it continues to "failed setup will retry", this is after it successfully "finished setup" accepting username/pw. It just won't load devices or entities.
I then went to change the pw to the server at iAqualink/Jandy, which would confirm nothing but this integration was logging in. Same result, unfortunately. Just can't get the devices/entities to populate. Looking into the logs and the device online, noticed a serial # mismatch. If I can figure out how to change the serial # within HA, which I assume is automatically entered with creating the integration, then problem should be solved.

jd3073 commented 1 year ago

my Jandy account had 2 pools on it and the 2nd one (not the one I wanted) was the serial # integration was picking up. Once that one was removed, everything worked as expected. Appreciate @flz's help.