Solaredge API problem

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
User avatar
waltervl
Posts: 7018
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: SolarEdge via Web API giving errors in log

Post by waltervl »

jannl wrote: Monday 29 December 2025 9:25 Can some admin merge the 3 solaredge api threads?
I have merged 2 topics into 1 and moved some posts of another one in this thread too. So hopefully everyoen stays focusses on this thread.... ;)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jannl
Posts: 870
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1.x
Location: Geleen
Contact:

Re: Solaredge API problem

Post by jannl »

This: https://monitoringapi.solaredge.com/sit ... =<api_key> is what is used in de code.
Everry url in Domoticz Solaredge.cpp ends with .json, so that should be ok. Not changed in de the last year
User avatar
waltervl
Posts: 7018
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Solaredge API problem

Post by waltervl »

jannl wrote: Tuesday 30 December 2025 9:34 This: https://monitoringapi.solaredge.com/sit ... =<api_key> is what is used in de code.
Everry url in Domoticz Solaredge.cpp ends with .json, so that should be ok. Not changed in de the last year
That does not seems to be true, it currently is missing the .json for currentPowerflow:
https://github.com/domoticz/domoticz/bl ... I.cpp#L458

The rest uses .json indeed.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jannl
Posts: 870
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1.x
Location: Geleen
Contact:

Re: Solaredge API problem

Post by jannl »

waltervl wrote: Tuesday 30 December 2025 9:40
jannl wrote: Tuesday 30 December 2025 9:34 This: https://monitoringapi.solaredge.com/sit ... =<api_key> is what is used in de code.
Everry url in Domoticz Solaredge.cpp ends with .json, so that should be ok. Not changed in de the last year
That does not seems to be true, it currently is missing the .json for currentPowerflow:
https://github.com/domoticz/domoticz/bl ... I.cpp#L458

The rest uses .json indeed.
My Bad, you are right, didn't look good.

Should be a simple and easy fix if that is the problem. But since it mostly works I doubt that is the (only) problem.

Edit: both work, the one without .json delivers XML, the one with .json delivers json. So the fix is not that easy

And still, I do not think Domoticz is the problem

Edit2: hm, the strange thing is the code seems to parse json.....
JaapB
Posts: 32
Joined: Friday 17 February 2023 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: Solaredge API problem

Post by JaapB »

jannl wrote: Tuesday 30 December 2025 10:28
waltervl wrote: Tuesday 30 December 2025 9:40
jannl wrote: Tuesday 30 December 2025 9:34 This: https://monitoringapi.solaredge.com/sit ... =<api_key> is what is used in de code.
Everry url in Domoticz Solaredge.cpp ends with .json, so that should be ok. Not changed in de the last year
That does not seems to be true, it currently is missing the .json for currentPowerflow:
https://github.com/domoticz/domoticz/bl ... I.cpp#L458

The rest uses .json indeed.
My Bad, you are right, didn't look good.

Should be a simple and easy fix if that is the problem. But since it mostly works I doubt that is the (only) problem.

Edit: both work, the one without .json delivers XML, the one with .json delivers json. So the fix is not that easy

And still, I do not think Domoticz is the problem

Edit2: hm, the strange thing is the code seems to parse json.....
Problem is that you need a restart of domoticz to get the connection re-establised and that only works when solaredge is producing. I guess that is what has changed at the solaredge part of the connection.
jannl
Posts: 870
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1.x
Location: Geleen
Contact:

Re: Solaredge API problem

Post by jannl »

No you (I) don't. Connection always comes back automatically after some time. The app and web interface also have issues with displaying anything besides the live data.
JaapB
Posts: 32
Joined: Friday 17 February 2023 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: Solaredge API problem

Post by JaapB »

jannl wrote: Thursday 01 January 2026 15:31 No you (I) don't. Connection always comes back automatically after some time. The app and web interface also have issues with displaying anything besides the live data.
I've been monitoring it for a few days now but connection does not automatically come back and there are no issues with the app and web-interface.

Mayb it's a combination of things that are at the base of these problems, most of the times a restart of domoticz fixes things but not alle of the time.
robkoel
Posts: 2
Joined: Saturday 24 January 2026 12:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.2+
Contact:

Re: Solaredge API problem

Post by robkoel »

for me, (on linux) changing the ipv6 / ipv4 priority to ipv4 first "solved" the issue.

to check the current priority (you will see the ipv6 address first in the list):
$ getent ahosts monitoringapi.solaredge.com
2606:4700::6812:1dbb STREAM monitoringapi.solaredge.com.cdn.cloudflare.net
2606:4700::6812:1dbb DGRAM
2606:4700::6812:1dbb RAW
2606:4700::6812:1cbb STREAM
2606:4700::6812:1cbb DGRAM
2606:4700::6812:1cbb RAW
104.18.29.187 STREAM
104.18.29.187 DGRAM
104.18.29.187 RAW
104.18.28.187 STREAM
104.18.28.187 DGRAM
104.18.28.187 RAW

after uncommenting the following line in /etc/gai.conf:
precedence ::ffff:-:0/96 100
the priority is set to ipv4, then ipv6

to verify:
$ getent ahosts monitoringapi.solaredge.com
104.18.28.187 STREAM monitoringapi.solaredge.com.cdn.cloudflare.net
104.18.28.187 DGRAM
104.18.28.187 RAW
104.18.29.187 STREAM
104.18.29.187 DGRAM
104.18.29.187 RAW
2606:4700::6812:1dbb STREAM
2606:4700::6812:1dbb DGRAM
2606:4700::6812:1dbb RAW
2606:4700::6812:1cbb STREAM
2606:4700::6812:1cbb DGRAM
2606:4700::6812:1cbb RAW

the last couple of days i didn't have any issues...


short-time happiness :-(: today the same errors as before.
JaapB
Posts: 32
Joined: Friday 17 February 2023 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: Solaredge API problem

Post by JaapB »

robkoel wrote: Saturday 24 January 2026 12:56 for me, (on linux) changing the ipv6 / ipv4 priority to ipv4 first "solved" the issue.

to check the current priority (you will see the ipv6 address first in the list):
$ getent ahosts monitoringapi.solaredge.com
2606:4700::6812:1dbb STREAM monitoringapi.solaredge.com.cdn.cloudflare.net
2606:4700::6812:1dbb DGRAM
2606:4700::6812:1dbb RAW
2606:4700::6812:1cbb STREAM
2606:4700::6812:1cbb DGRAM
2606:4700::6812:1cbb RAW
104.18.29.187 STREAM
104.18.29.187 DGRAM
104.18.29.187 RAW
104.18.28.187 STREAM
104.18.28.187 DGRAM
104.18.28.187 RAW

after uncommenting the following line in /etc/gai.conf:
precedence ::ffff:-:0/96 100
the priority is set to ipv4, then ipv6

to verify:
$ getent ahosts monitoringapi.solaredge.com
104.18.28.187 STREAM monitoringapi.solaredge.com.cdn.cloudflare.net
104.18.28.187 DGRAM
104.18.28.187 RAW
104.18.29.187 STREAM
104.18.29.187 DGRAM
104.18.29.187 RAW
2606:4700::6812:1dbb STREAM
2606:4700::6812:1dbb DGRAM
2606:4700::6812:1dbb RAW
2606:4700::6812:1cbb STREAM
2606:4700::6812:1cbb DGRAM
2606:4700::6812:1cbb RAW

the last couple of days i didn't have any issues...


short-time happiness :-(: today the same errors as before.
Too bad this did not work.

I've been looking at some other possible sollutions and found it in editting the file domocookies.txt in the config directory of domoticz on my raspberry. I uncommented all the lines with solaredge in it and on my test-system this has resulted in automaticly receiving data from the portal when the solaredge is delevering power for two days in a row now.

On my main system I did not make this change and there the problem still exists.

I'll keep monitoring this and maybe it is a sollution.
edwin1234
Posts: 341
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: Solaredge API problem

Post by edwin1234 »

Nice,
Let us know when your shure.
JaapB
Posts: 32
Joined: Friday 17 February 2023 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: Solaredge API problem

Post by JaapB »

edwin1234 wrote: Wednesday 28 January 2026 17:54 Nice,
Let us know when your shure.
After editting the domocookie.txt file the test-system worked for 4 days, on day five it did not start logging in the morning.

Looking at the webportal and app of solaredge that keeps working so somehow it has something to do with how domoticz handels this data since the domocookie file is generated and changed bij domoticz.
Kedi
Posts: 622
Joined: Monday 20 March 2023 14:41
Target OS: Linux
Domoticz version: latest
Location: Somewhere in NL
Contact:

Re: Solaredge API problem

Post by Kedi »

Uncommenting did not work for me, because the '#' are writen back to the 3 cookies.
Logic will get you from A to B. Imagination will take you everywhere.
Bjornen
Posts: 12
Joined: Wednesday 25 October 2023 13:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: Somewhere in Sweden
Contact:

Re: Solaredge API problem

Post by Bjornen »

Hi. I have the same problem reported in this thread.

2026-02-19 07:22:25.074 Error: Solpaneler: Error getting http data (Equipment details)!
2026-02-19 07:22:25.254 Error: Solpaneler: Error getting http data (currentPowerFlow details)!

Sometimes it just starts to work, sometimes I have to stop the worker and start again, sometimes I reboot and it can still be problems and suddenly it works again. And another thing is that (I reboot my Raspberry every night at 2AM) it starts polling Solaredge right away and continues through the night. Which is a new behaviour.
All this started on second or third of January.

Raspberry Pi 4 with Trixie and Docker. Up to date.
Domoticz Version: 2025.2 (build 16818)
Build Hash: 2f9016a8b
Compile Date: 2025-10-19 11:41:46
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]

Also have Zigbee2mqtt and Mosquitto installed.

Database problem?

Regards!
Bjornen
Posts: 12
Joined: Wednesday 25 October 2023 13:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: Somewhere in Sweden
Contact:

Re: Solaredge API problem

Post by Bjornen »

Some time ago I did manual calls to Solaredge monitoringapi while Domoticz did not work.

========================
# Get site info works OK
========================
{"sites":{"count":1,"site":[{"id":nn,"name":"Address","accountId":nnn,"status":"Active","peakPower":7.2,"lastUpdateTime":"2026-01-25","installationDate":"2022-06-15","ptoDate":null,"notes":"","type":"Optimizers & Inverters","location":{"country":"Sweden","city":"a town","address":"an address","address2":"","zip":"nnnnn","timeZone":"Europe/Stockholm","countryCode":"SE"},"uris":{"DETAILS":"/site/nnnn/details","DATA_PERIOD":"/site/nnnn/dataPeriod","OVERVIEW":"/site/nnnn/overview"},"publicSettings":{"isPublic":false}}]}}

========================
# And get device info
========================
{"reporters":{"count":1,"list":[{"name":"Inverter 1","manufacturer":"SolarEdge","model":"SE7K-RW0TEBEN4","serialNumber":"7XXXXXXX-YY","kWpDC":null}]}}

========================
# This is response when nothing is produced I guess.
========================

{"data":{"count":0,"telemetries":[]}}

========================
# And later suddenly this is when it works OK.
========================

{"data":{"count":1,"telemetries":[{"date":"2026-01-25 10:00:06","totalActivePower":0.0,"dcVoltage":30.4985,"powerLimit":100.0,"totalEnergy":2.30435E7,"temperature":6.74658,"inverterMode":"MPPT","operationMode":0,"vL1To2":392.332,"vL2To3":393.247,"vL3To1":393.392,"L1Data":{"acCurrent":0.0,"acVoltage":226.617,"acFrequency":50.0031,"apparentPower":0.0,"activePower":0.0,"reactivePower":0.0,"cosPhi":0.0},"L2Data":{"acCurrent":0.0,"acVoltage":227.458,"acFrequency":50.002,"apparentPower":0.0,"activePower":0.0,"reactivePower":0.0,"cosPhi":0.0},"L3Data":{"acCurrent":0.0,"acVoltage":226.594,"acFrequency":50.0024,"apparentPower":0.0,"activePower":0.0,"reactivePower":0.0,"cosPhi":0.0}}]}}
Bjornen
Posts: 12
Joined: Wednesday 25 October 2023 13:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: Somewhere in Sweden
Contact:

Re: Solaredge API problem

Post by Bjornen »

Hi!
Interesting,
I did a python script with
url = urllib.request.urlopen(webrequest).read()
where webrequest is the string for equipment and get either a 429 for too many req's or a proper string back. That string can have either
{"data":{"count":0,"telemetries":[]}}
or
a lot of data. Fine.
But Domoticz keeps on saying
2026-03-02 10:16:00.833 Error: Solpaneler: Error getting http data (Equipment)!
2026-03-02 10:16:01.007 Error: Solpaneler: Error getting http data (currentPowerFlow details)!
or recently just
2026-03-02 10:21:01.214 Error: Solpaneler: Error getting http data (currentPowerFlow details)!

The latter is as I get it from the Solaredge.cpp code from the battery part. Which is confusing becasue I do not have any batteries installed.....
And I do not get any updates on the solarpart either.

So the question have Solaredge changed their output in any way(cannot find any updates on the API there) or is somehow connected to update in the base for Linux. Running Trixie on a raspberry PI 4 and in Docker environment. Have had this problem since start of 2026.
Bjornen
Posts: 12
Joined: Wednesday 25 October 2023 13:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: Somewhere in Sweden
Contact:

Re: Solaredge API problem

Post by Bjornen »

Just to add. I have been running the Solaredge "plugin" since july 2022 without any problems before this year. And I have done ordinary apt upgrade on a regurlary basis and also done total change of hardware with just a database backup and restore through the Domoticz GUI. No problems. Other hardware like RFXCOM and P1 meter and such has always come through without any problems as well.
BartSr
Posts: 541
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Solaredge API problem

Post by BartSr »

Once I try

Code: Select all

https://monitoringapi.solaredge.com/site/741055/currentPowerFlow?api_key=[modedit]
I receive error 403 entry to page monitoringapi.solaredge.com is refused.
Dutch: Toegang tot monitoringapi.solaredge.com is geweigerd
Je hebt geen toestemming om deze pagina te bekijken.
HTTP ERROR 403

API# as well as site ID are correct.
Any suggestion?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
jannl
Posts: 870
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1.x
Location: Geleen
Contact:

Re: Solaredge API problem

Post by jannl »

Are you sure both are correct? The link you posted works for me. With my credentials off-course.

Only thing I changed is the site-id and the [moedit] in my api key (copied from Domoticz)
BartSr
Posts: 541
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Solaredge API problem

Post by BartSr »

I just tried to be sure and still same error.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
jannl
Posts: 870
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1.x
Location: Geleen
Contact:

Re: Solaredge API problem

Post by jannl »

To be sure, you do not use the brackets woth api key?
Post Reply