solaredge polling interval

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
akoopal
Posts: 2
Joined: Tuesday 23 April 2019 0:17
Target OS: Linux
Domoticz version:
Contact:

solaredge polling interval

Post by akoopal »

Hi,

I have solar panels with a solaredge inverter. I use the API key to pull the stats of power generation into my domoticz. However, sometimes the solaredge poller gives errors:

2019-04-22 19:32:02.708 Error: SolarEdgeAPI: Error getting http data!
2019-04-22 19:37:17.827 Error: SolarEdgeAPI: Error getting http data!
2019-04-22 19:42:32.923 Error: SolarEdgeAPI: Error getting http data!

I suspect this is due to hitting the API limits. When it happens, I disable solaredge in the hardware setttings and enable the next morning. However, you have some infomation loss each time it happens. Would it be possible to configure the poll interval? I wouldn't mind to set it to 10 or even 15 minutes, in principle you can query all the 5 minute values since the last poll, so there doesn't have to be any data loss?

Regards,

André Koopal
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: solaredge polling interval

Post by gizmocuz »

Hello Andre,

Are you any other software that is polling your SolarEdge data ?

If you are building domoticz by hand (source), you could change the polling interval in

void SolarEdgeAPI::Do_Work

Change

Code: Select all

if (sec_counter % 300 == 0)
to

Code: Select all

if (sec_counter % 600 == 0)
To poll every 10 minutes and you can check if that solves your problem.

Regarding the limitation, this is according the manual set to 300 calls / day

We poll every 5 minutes

1440 minutes a day , divided by 5, equals 288, which should be OK, and 2 startup calls

Maybe you restarted Domoticz a few extra times ?
Quality outlives Quantity!
akamming
Posts: 338
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: solaredge polling interval

Post by akamming »

Some time ago I had the same issue. The 300 calls per day were exceeed because i also configured my solar panels to report to pvoutput.org and apparently domoticz and pvoutput together exceed 300 calls per day.

i also needed a more precise measurement (i wanted to calculate my real power consumption), so i also needed to change the interval (in my case: every 10 seconds).

For me the solution was stop using the default SolarEdge API and create a script which retrieves the data using sunspec monitor / ModbusTCP (https://github.com/tjko/sunspec-monitor)

you can find the script at the end of the following post https://www.domoticz.com/forum/viewtopic.php?t=16440

maybe this is a solution for you as well..
akoopal
Posts: 2
Joined: Tuesday 23 April 2019 0:17
Target OS: Linux
Domoticz version:
Contact:

Re: solaredge polling interval

Post by akoopal »

Although I am capable of building it by hand I prefer to use the packages. I think this should be configurable.

I do use pvoutput as well, but as I understand the specs, the limit is per polling IP, so that shouldn't conflict. But I did reduce pvoutput a bit more. pvoutput keeps working when domoticz fails, so that indeed suggests a limit per IP.

I don't really care about realtime to much, ok for me to have a less frequent polling interval.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest