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
70.84k stars 29.54k forks source link

OVO Energy polling is excessively aggressive #51496

Closed blastoise186 closed 3 years ago

blastoise186 commented 3 years ago

The problem

Hi,

I'm a forum volunteer on the OVO Community Forum, but I'm posting this Issue as myself.

In relation to https://github.com/timmo001/ovoenergy/issues/21 I wanted to give a heads up that the polling rate for the OVO Energy integration is too aggressive for the intended purpose, as discussed over at https://forum.ovoenergy.com/smart-home-products-139/ovo-integration-for-home-assistant-9080 . Please consider reducing the polling frequency.

While smart meters can indeed record usage data every 30 minutes, they don't submit anything until after midnight, so polling OVO's system every 5 minutes is merely wasting resources on both ends and won't get any new information. You may want to consider reducing it to once a day and randomise the intervals over at least a couple of hours (ideally no earlier than 5am to avoid smashing up OVO during any data processing).

To be clear, even with 30 minute polling, you won't get any new data more than once a day at best. Any other polling will just return identical data.

This integration is technically API Abuse right now and the users are smashing the API to pieces without much benefit. while OVO has mentioned that a public API is on the way, it's not ideal to be abusing a private API that's only intended for internal use.

Thanks!

What is version of Home Assistant Core has the issue?

2021.6.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

ovo_energy

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

ovo_energy documentation ovo_energy source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @timmo001, mind taking a look at this issue as its been labeled with an integration (ovo_energy) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

blastoise186 commented 3 years ago

It's also worth noting that since all SMETS1 and SMETS2 Smart Meters in the UK behave the same way regardless of supplier, I'd also recommend reducing the polling rates for any other smart meter/energy supplier related integrations related to UK based suppliers.