Reduce SolarEdge API call time or make configurable

The SolarEdge API daily rate limit of 300 equates to a call every 4.8 minutes. The value in const.py is currently 15mins, so if there is no use outside of HA, this can safely be set to 5mins instead.

I have actually connected to my docker instance and changed this manually, but get reverted on upgrades.

Can this be reduced in the source to 5 mins, or be made configurable in configuration.yaml or core.config_entries ?

I have automations that turn on/off depending on solar production, which at 15mins is virtually useless, for me anyway. (p.s my SolarEdge inverter is too old to support ModBus over TCP)

Oh yes please. I also would love to be able to configure the update interval

As an idea, try using scan_interval. I have doubts it will work, but maybe…

Something like:

solaredge:
  api_key: !secret solaredge_api_key
  site_id: !secret sloaredge_site_id
  name: SolarEdge
  scan_interval: 300

@wmaker Unfortunately the retry value is hard coded in const.py :frowning_face:

Hi together .

Push The topic. There ist No Restriktion since 2021 about 300.

Is there still a way to config The Poll Limit in The Adapter ?

Thx,
Andi

Hi @ all,

@kmidt: how do you know it’s not limited anymore?

I would also be very interested in how the interval can be reduced. does anyone have a solution meanwhile?

Here is what I do:

docker exec -it $(docker ps -f name=homeassistant -q) bash
vi /usr/src/homeassistant/homeassistant/components/solaredge/const.py
sudo docker restart homeassistant

Change the values at the top from 15 to 5

What would be the solution with Docker Compose? Can I insert something in the compose file? Sorry, I am not a Docker specialist.

The limit I read on API documentation is 300 on daily basis, so a SCAN_INTERVAL would be fine to be set at 5 minutes.
How can I change that hardcoded parameter?