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
71.14k stars 29.82k forks source link

VeSync Integration causing throttling #122620

Open JeffSteinbok opened 1 month ago

JeffSteinbok commented 1 month ago

The problem

I think the VeSync integration is causing throttling by the VeSync servers.

When I call their endpoint from a browser on my home network, I get this: https://smartapi.vesync.com/

{
    "traceId": "1721940128566",
    "code": -11103086,
    "msg": "internal server busy error"
}

If I turn off polling in the VeSync integration, things seem to start working again. I get this response:

{
    "traceId": "1721940393496",
    "code": -11000086,
    "msg": "illegal argument",
    "module": null,
    "stacktrace": null,
    "result": null
}

If I access VeSync from Cell or a different VPN, it all works, indicating that it has to do with my source IP location.

I do have a LOT of devices (15 or so) which may mean I need to drop the polling interval and do it manually? Unsure. Either way, this just started happening a day ago or so.

What version of Home Assistant Core has the issue?

core-2024.7.3

What was the last working version of Home Assistant Core?

core-2024.7.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

VeSync

Link to integration documentation on our website

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

Diagnostics information

home-assistant_vesync_2024-07-25T07-05-15.207Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `vesync` 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 vesync` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


vesync documentation vesync source (message by IssueLinks)

ewelin34 commented 1 month ago

I too am having this issue. At least once a day I see the same connectivity issues. I currently have 3 air purifiers in VeSync. Each time my connection drops it lasts for at least 3 hours.

matthewpapa07 commented 1 month ago

+1 Seeing this as well

jmunchies1 commented 1 month ago

Also just experienced this for the first time today. I have 3 x Core 400S air purifiers that have worked fine in HA for a while now. I just upgraded HA from 2024.7.4 to 2024.8.1 and noticed that VeSync integration wasn't working. I thought something went wrong on the upgrade but then the VeSync Android App says server error and won't load either so I'm guessing my VeSync account had been throttled. Hopefully this can be rectified somehow.

leiyucs commented 1 month ago

+1. stopping HA auto polling solved the problem.

tangix commented 1 month ago

+1. stopping HA auto polling solved the problem.

Having the same issue, did you turn off polling from the integration setting?

image
jmunchies1 commented 1 month ago

I originally turned off polling in the integration setting but have since turned it back on. So far been ok for 24 hours, wonder what the threshold is. In any case, can the devs create a setting to reduce the polling rate? I would still like it to update but less frequently so we don't get throttled.

mattryyc commented 3 weeks ago

I'd like to also see options around polling rate added here, assuming that would solve the issue. The throttling also means that VeSync app can no longer control the devices (not just HA), so this is a big impact to the device functionality when the throttling kicks in.

mtnbiker777 commented 2 weeks ago

Add me to the list of people having this issue.

jmunchies1 commented 5 days ago

Had this issue happen again when going from 2024.8.3 to 2024.9.1. it seems that major HA version upgrades will trigger it for me but minor (in-month) upgrades don't.

Devs please see if there's a way to reduce the polling rate please.

handfix commented 2 days ago

I also have the issue and I would love a poll rate setting as others mentioned.