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
73.57k stars 30.74k forks source link

Litter Robot integration shows >20k hits a day to API #51729

Closed flyize closed 3 years ago

flyize commented 3 years ago

The problem

I just happened to check my Pi Hole stats, and I see over 20k hits to v2.api.whisker.iothings.site. A quick Google seems to point to Litter Robot. This seems like something the Litter Robot folks are not going to be very happy about, if true.

What is version of Home Assistant Core has the issue?

core-2021.6.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Litter Robot

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

frenck commented 3 years ago

I don't think your Pi-hole is correct in this case (unless you have multiple robots). The integration uses a coordinator, that has an update interval of 10 seconds.

86400/10 = 8640 (not 20K+)

bdr99 commented 3 years ago

It could be the case that each update involves multiple HTTP requests. This would explain why @flyize is seeing 20K+ requests per day even though the coordinator only updates every 10 seconds.

flyize commented 3 years ago

It's, by far, the top DNS hit on my network. But if you guys are sure it's not HA, then I'll assume their API is just stupid.

frenck commented 3 years ago

@flyize I agree it are a lot of request, looking at the upstream library, it is a single request per update cycle, which is every 10 seconds. So that would hit 86400 (which is still a lot, but not 20K).