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

Advantage Air unavailable after input #43061

Closed
Tockerz opened this issue Nov 10, 2020 · 6 comments · Fixed by #43417
Closed

Advantage Air unavailable after input #43061

Tockerz opened this issue Nov 10, 2020 · 6 comments · Fixed by #43417

Comments

@Tockerz
Copy link

Tockerz commented Nov 10, 2020

The problem

When inputing Advantage Air integration power, mode, temp, or covers change, the integration goes temporarily "N/A" or "unavailable" and reconnects after 5 - 20 seconds.

Environment

  • Home Assistant Core release with the issue: 0.117.5
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core): HassOS 4.15
  • Integration causing this issue: Advantage Air
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/advantage_air/

Problem-relevant configuration.yaml

Traceback/Error logs

2020-11-10 18:35:09 ERROR (MainThread) [homeassistant.components.advantage_air] Error fetching Advantage Air data: No valid response after 5 failed attempts. Last error was:

Additional information

image

@Bre77
Copy link
Contributor

Bre77 commented Nov 10, 2020

@Tockerz couple of questions:

How long from when you make the change does it show unavailable? I'm expecting this to be about 5 seconds.

Which system do you have (MyAir 5, e-zone, e10zone)?

@Tockerz
Copy link
Author

Tockerz commented Nov 10, 2020

I have updated the problem - yes about 5-10 seconds is normal but sometimes longer. I am using standard eZone.

@Bre77
Copy link
Contributor

Bre77 commented Nov 10, 2020

So the python library only tries 6 times with 1 second between each try, which means your system is taking longer than 5 seconds to make the change. I will raise a PR to either increase the number of retries, or use a linear back off so that it doesn't show unavailable for 15 seconds

@Bre77
Copy link
Contributor

Bre77 commented Nov 10, 2020

One more test you can do for me to ensure we get this fixed. Make a change using the e-zone app, then repetitively hit ipaddress:2025/getSystemData with your browser and time how long it takes from making the change until it shows more than "{}"

@Tockerz
Copy link
Author

Tockerz commented Nov 10, 2020

One more test you can do for me to ensure we get this fixed. Make a change using the e-zone app, then repetitively hit ipaddress:2025/getSystemData with your browser and time how long it takes from making the change until it shows more than "{}"

Yeah 5-7 seconds to return data after sending a change.

@probot-home-assistant
Copy link

advantage_air documentation
advantage_air source
(message by IssueLinks)

Bre77 added a commit to Bre77/core that referenced this issue Nov 20, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants