SolarEdge api

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

SolarEdge api

Post by petroman »

Hello,

I am new to the domotica world so bare with me.
We have a solaredge system on the roof and I wnat to use domoticz with the api.

I installed the latest stable version of domotic,
Ad hardware via api key,
I also allowed devices for 5min,
but I can't get devices.

Can anybodu point me in the right direction ?
O, yes sun is shining and solar system is on line.

Best regards,
Wim

Via the logfile I see this:
2016-06-05 12:07:14.683 Domoticz V3.4834 (c)2012-2016 GizMoCuz
2016-06-05 12:07:14.683 Build Hash: 8398125, Date: 2016-03-02 08:43:51
2016-06-05 12:07:18.184 Active notification subsystems: http (1/11)
2016-06-05 12:07:18.184 WebServer(HTTP) started on address: :: with port 8080
2016-06-05 12:07:18.278 WebServer(SSL) started on address: :: with port 443
2016-06-05 12:07:18.278 Proxymanager started.
2016-06-05 12:07:18.278 Starting shared server on: :::6144
2016-06-05 12:07:18.278 TCPServer: shared server started...
2016-06-05 12:07:18.278 RxQueue: queue worker started...
2016-06-05 12:07:18.488 Incoming connection from: 127.0.0.1
2016-06-05 12:07:20.309 EventSystem: reset all events...
2016-06-05 12:07:20.309 EventSystem: reset all device statuses...
2016-06-05 12:07:20.310 EventSystem: Started

2016-06-05 12:30:47.534 SolarEdgeAPI Worker started...
2016-06-05 12:34:10.725 SolarEdgeAPI Worker stopped...
2016-06-05 12:50:55.905 SolarEdgeAPI Worker stopped...
2016-06-05 13:51:26.016 New sensors allowed for 5 minutes...
2016-06-05 13:51:57.138 New sensors allowed for 5 minutes...
2016-06-05 14:03:11.148 SolarEdgeAPI Worker started...
2016-06-05 14:03:25.185 SolarEdgeAPI Worker stopped...
2016-06-05 14:03:44.935 SolarEdgeAPI Worker started...
2016-06-05 14:03:57.415 New sensors allowed for 5 minutes...
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

First make sure that your API key and Site ID are both correct. Check it with this URL replacing the SITEID and APIKEY with yours:

https://monitoringapi.solaredge.com/sit ... key=APIKEY

If correct the browser result is XML output with the generated Wh between 01-06-2016 and 05-06-2016.
petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by petroman »

Thanks for the fast answer: the site id is the numer or the name you gave your installation ?
I use both but they both give a 403 error: Access to the specified resource () has been forbidden.

But maybe I change the wrong code part:

https://monitoringapi.solaredge.com/sit ... 360U4U53DZ..

I removed the last two letters from the apikey.

eDIT:
SORRY,
THERE WAS AN UISSUE WITH GENERATION THE KEY. i GENERATED THE API KEY BUT SOMEWHERE ON THE BOTTUM OF THE PAGE STOOD: SAVE.
sorry 2: capslock was on.

So now I saved the api key, I get this back:
DAYWhINVERTER2016-06-01 00:00:006356.8742016-06-02 00:00:005551.5022016-06-03 00:00:004698.00342016-06-04 00:00:008817.3022016-06-05 00:00:009512.474

But still no devices.
Best regards,
Wim
www.petromax.nl
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

Correct serial number in the hardware settings?
petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by petroman »

CurrentThread wrote:Correct serial number in the hardware settings?
Yes, checked that again.
The log now says:
...
2016-06-05 15:24:35.155 Active notification subsystems: (0/11)
2016-06-05 15:24:37.365 Active notification subsystems: (0/11)
2016-06-05 15:26:15.318 New sensors allowed for 5 minutes...
2016-06-05 15:27:03.642 Error: SolarEdgeAPI: Error getting http data!

It suggest it has contact but doesn't get the data.
Image1.jpg
Image1.jpg (109.6 KiB) Viewed 9809 times
Best regards,
Wim
www.petromax.nl
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

The Domoticz process can access the internet (no firewall blocking)?

You get that error if the following HTTP request does not return a valid result. Can you try this URL in a web browser, replacing YOUR_SITEID, YOUR_SERIAL and YOUR_APIKEY with the values in your Domoticz hardware settings?

https://monitoringapi.solaredge.com/equ ... OUR_APIKEY
petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by petroman »

CurrentThread wrote:The Domoticz process can access the internet (no firewall blocking)?

You get that error if the following HTTP request does not return a valid result. Can you try this URL in a web browser, replacing YOUR_SITEID, YOUR_SERIAL and YOUR_APIKEY with the values in your Domoticz hardware settings?

https://monitoringapi.solaredge.com/equ ... OUR_APIKEY
Works,
Get a load of data.

Edit:
So, I do not know why but suddenly there was some communication.
The only difference is that I rebooted the PC and mnitor network behaviour via my eset smart security. To be sure that this din't block traffic.
Now is the question (sorry),
1) what determines the items I can monitor,
2) what is the refresh rate ?
3) how can I edit the refresh rate ?
4) where can I alther the values settings ? Last row, frequency is in percentage, which is not correct.

And off coarse THANK YOU for all the help.

Log:
2016-06-05 16:53:55.050 Error: SolarEdgeAPI: Error getting http data!
2016-06-05 16:58:23.622 New sensors allowed for 5 minutes...
2016-06-05 16:58:56.541 (Solarman) General/kWh (kWh Meter)
2016-06-05 16:58:56.622 (Solarman) General/Voltage (DC)
2016-06-05 16:58:56.693 (Solarman) Temp (SolarMain)
2016-06-05 16:58:56.770 (Solarman) General/Voltage (AC)
2016-06-05 16:58:56.832 (Solarman) General/Percentage (Hz)
Last edited by petroman on Sunday 05 June 2016 17:34, edited 1 time in total.
Best regards,
Wim
www.petromax.nl
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

Is that "Error: SolarEdgeAPI: Error getting http data!" line repeating in the log each x seconds?

And Domoticz can access the internet? To verify you can try the Weather Underground integration with Domoticz for example. It needs internet to get the actual weather.
petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by petroman »

CurrentThread wrote:Is that "Error: SolarEdgeAPI: Error getting http data!" line repeating in the log each x seconds?
And Domoticz can access the internet? To verify you can try the Weather Underground integration with Domoticz for example. It needs internet to get the actual weather.
Weather Underground integration ?
Is this the forecast under the tab weather ? If so it works.

But I don't see errors anymore in the log too, so it looks something fixed itself.
Although that is scary.

I edited my message so our messages crossed in time.
Best regards,
Wim
www.petromax.nl
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

If it is running fine, SolarEdge via Web API hardware is requesting new data every five minutes. And only from one hour before sunrise until one hour after sunset. So make sure your location is set in the Domoticz settings.
petroman
Posts: 6
Joined: Sunday 05 June 2016 13:58
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by petroman »

CurrentThread wrote:If it is running fine, SolarEdge via Web API hardware is requesting new data every five minutes. And only from one hour before sunrise until one hour after sunset. So make sure your location is set in the Domoticz settings.
ok, thanks.

I am already excited. I used the search but is tehre a specific topi about solar edge ?
Because their own monitoring tool shows more information then the five parameters I now have/get.

For instance: power/temp/current per panel ?
Best regards,
Wim
www.petromax.nl
CurrentThread
Posts: 11
Joined: Tuesday 26 April 2016 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by CurrentThread »

The info per panel is only visible via the SolarEdge Portal website or app. I don't think that information is exposed via the SolarEdge API. All API options are described here: http://www.solaredge.com/files/pdfs/se_ ... ng_api.pdf
multispeed
Posts: 1
Joined: Monday 13 June 2016 9:52
Target OS: Windows
Domoticz version:
Contact:

Re: SolarEdge api

Post by multispeed »

i have a similair problem..

I see data when i goto
https://monitoringapi.solaredge.com/equ ... OUR_APIKEY

i see data:
{"data":{"count":26,"telemetries":[{"date":"2016-06-01 18:00:00","totalActivePower":308.0,"dcVoltage":748.0,"groundFaultResistance":6900.04,"powerLimit":100.0,"totalEnergy":12827.0,"temperature":39.4267,"inverterMode":"MPPT","vL1To2":406.688,"vL2To3":403.969,"vL3To1":406.0,"L1Data":{"acCurrent":0.726562,"acVoltage":236.281,"acFrequency":50.0223,"apparentPower":171.0,"activePower":102.0,"reactivePower":-137.0,"cosPhi":1.0},"L2Data":{"acCurrent":0.734375,"acVoltage":233.609,"acFrequency":50.021,"apparentPower":172.0,"activePower":102.0,"reactivePower":-142.0,"cosPhi":1.0},"L3Data":{"acCurrent":0.734375,"acVoltage":232.328,"acFrequency":50.0236,"apparentPower":172.0,"activePower":104.0,"reactivePower":-136.0,"cosPhi":1.0}},{"date":"2016-06-01 18:05:00","totalActivePower":284.0,"dcVoltage":747.625,"groundFaultResistance":6900.04,"powerLimit":100.0,"totalEnergy":12853.0,"temperature":39.3658,"inverterMode":"MPPT","vL1To2":405.625,"vL2To3":402.312,"vL3To1":405.0,"L1Data":{"acCurrent":0.703125,"acVoltage":236.047,"acFrequency":49.9932,"apparentPower":165.0,"activePower":91.0,"reactivePower":-137.0,"cosPhi":1.0},"L2Data":{"acCurrent":0.71875,"acVoltage":232.328,"acFrequency":49.9929,"apparentPower":169.0,"activePower":91.0,"reactivePower":-140.0,"cosPhi":1.0},"L3Data":{"acCurrent":0.726562,"acVoltage":231.891,"acFrequency":49.9918,"apparentPower":167.0,"activePower":102.0,"reactivePower":-134.0,"cosPhi":1.0}},{"date":"2016-06-01
But i get no devices... Not even when i allow devices for 5 minutes...

The log tells me:
2016-06-13 09:26:53.740 Domoticz V3.5241 (c)2012-2016 GizMoCuz
2016-06-13 09:26:53.756 Build Hash: 141e2b2, Date: 2016-06-13 08:42:30
2016-06-13 09:26:54.100 Active notification subsystems: http (1/11)
2016-06-13 09:26:54.178 WebServer(HTTP) started on address: :: with port 8080
2016-06-13 09:26:54.959 WebServer(SSL) started on address: :: with port 443
2016-06-13 09:26:54.959 Proxymanager started.
2016-06-13 09:26:54.975 Starting shared server on: :::6144
2016-06-13 09:26:54.975 TCPServer: shared server started...
2016-06-13 09:26:54.975 RxQueue: queue worker started...
2016-06-13 09:26:56.553 Incoming connection from: 192.168.1.82
2016-06-13 09:26:57.022 EventSystem: reset all events...
2016-06-13 09:26:57.053 SolarEdgeAPI Worker started...
2016-06-13 09:26:57.053 EventSystem: reset all device statuses...
2016-06-13 09:26:57.084 EventSystem: Started
2016-06-13 09:33:35.958 Incoming connection from: ::1
2016-06-13 09:41:02.979 Incoming connection from: 192.168.1.71
2016-06-13 09:48:12.273 New sensors allowed for 5 minutes...
2016-06-13 09:48:34.856 SolarEdgeAPI Worker stopped...
2016-06-13 09:48:34.856 SolarEdgeAPI Worker started...
2016-06-13 10:02:08.591 Incoming connection from: 192.168.1.181
Can anyone point me in the right direction ?
WardjeP
Posts: 1
Joined: Friday 12 August 2016 16:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge api

Post by WardjeP »

Hi all,

I'm also new in the world of Domoticz and Raspberry. But..... It's up and running so far :D

We also have a solar systeem with a SolarEdge SE5000 converter. I've entered the Site-ID, Serial number and Site API code but in the lof file is the same message as mentioned above (Petroman):

2016-08-12 16:14:00.943 SolarEdgeAPI Worker started...
2016-08-12 16:14:16.464 Error: SolarEdgeAPI: Error getting http data!
2016-08-12 16:19:27.013 Error: SolarEdgeAPI: Error getting http data!
2016-08-12 16:24:37.561 Error: SolarEdgeAPI: Error getting http data!

Every 5 minutes.....

I've used the link with adapted data and received data from the site, but not in Domoticz.....

The installation is new. (Yesterday). Is it a matter of time?
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: SolarEdge api

Post by mcwieger »

Same issue as above:

2016-09-07 13:02:11.957 Error: SolarEdgeAPI: Invalid data received!
2016-09-07 13:07:15.488 Error: SolarEdgeAPI: Invalid data received!
2016-09-07 13:07:45.008 Error: SolarEdgeAPI: Invalid data received!
2016-09-07 13:08:08.461 Error: SolarEdgeAPI: Invalid data received!
2016-09-07 13:13:11.992 Error: SolarEdgeAPI: Invalid data received!

And on the API page of SolarEdge:

type Status report
message
description Access to the specified resource () has been forbidden.

And no devices are added. Any progress from anyone?
I moved to HomeAssistant. It was fun while it lasted!
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: SolarEdge api

Post by mcwieger »

Ok, RTFM: https://www.domoticz.com/wiki/SolarEdge :oops:

I used the user api key instead of the site key. I received the right key from SolarEdge and now working as expected.
I moved to HomeAssistant. It was fun while it lasted!
rizzah
Posts: 75
Joined: Monday 17 October 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Groningen
Contact:

Re: SolarEdge api

Post by rizzah »

Hi All,

I have the same problem as this topic starter it seems. Also im new to this :-)

I have all the right info (siteID/serial/etc) and i dont see any errors in the logs. However i dont know where i can find out if its receiving any data, because the only thing i see in the log is :

2016-10-17 15:31:53.073 SolarEdgeAPI Worker stopped...
2016-10-17 15:31:53.073 SolarEdgeAPI Worker started...

And thats it. The Pi3 tunning domoticz has internet connection. I tried the above suggestions with the URL, and i got a nice xml responce from that.

Any other reason why i wouldnt see the SolarEdge in my devices list? As a side question, how often does the devices list get updated?

Regards,
Peter
litfiba
Posts: 5
Joined: Wednesday 07 December 2016 18:48
Target OS: Linux
Domoticz version: 3.7521
Contact:

Re: SolarEdge api

Post by litfiba »

Hi Everyone!

It seems I got the same issue related to this topic. I'm able to receive a json response when requesting "https://monitoringapi.solaredge.com/equ ... ey=API_KEY":

EG:
{"data":{"count":447,"telemetries":[{"date":"2016-12-01 18:49:56","totalActivePower":0.0,"dcVoltage":null,"powerLimit":0.0,"totalEnergy":40344.0,"temperature":0.0,"inverterMode":"SLEEPING","vL1To2":408.219,"vL2To3":410.969,"vL3To1":412.5,"L1Data":{"acCurrent":0.0,"acVoltage":235.375,"acFrequency":49.9897,"apparentPower":0.0,"activePower":0.0,"reactivePower":0.0,"cosPhi":0.0},"L2Data":

But In Domoticz with same parameters I only got "SolarEdgeAPI Worker started...", no errors... but NO DEVICES..
Please, does anyone solved this issue?
litfiba
Posts: 5
Joined: Wednesday 07 December 2016 18:48
Target OS: Linux
Domoticz version: 3.7521
Contact:

Re: SolarEdge api

Post by litfiba »

multispeed wrote:i have a similair problem..

I see data when i goto
https://monitoringapi.solaredge.com/equ ... OUR_APIKEY

i see data:
{"data":{"count":26,"telemetries":[{"date":"2016-06-01 18:00:00","totalActivePower":308.0,"dcVoltage":748.0,"groundFaultResistance":6900.04,"powerLimit":100.0,"totalEnergy":12827.0,"temperature":39.4267,"inverterMode":"MPPT","vL1To2":406.688,"vL2To3":403.969,"vL3To1":406.0,"L1Data":{"acCurrent":0.726562,"acVoltage":236.281,"acFrequency":50.0223,"apparentPower":171.0,"activePower":102.0,"reactivePower":-137.0,"cosPhi":1.0},"L2Data":{"acCurrent":0.734375,"acVoltage":233.609,"acFrequency":50.021,"apparentPower":172.0,"activePower":102.0,"reactivePower":-142.0,"cosPhi":1.0},"L3Data":{"acCurrent":0.734375,"acVoltage":232.328,"acFrequency":50.0236,"apparentPower":172.0,"activePower":104.0,"reactivePower":-136.0,"cosPhi":1.0}},{"date":"2016-06-01 18:05:00","totalActivePower":284.0,"dcVoltage":747.625,"groundFaultResistance":6900.04,"powerLimit":100.0,"totalEnergy":12853.0,"temperature":39.3658,"inverterMode":"MPPT","vL1To2":405.625,"vL2To3":402.312,"vL3To1":405.0,"L1Data":{"acCurrent":0.703125,"acVoltage":236.047,"acFrequency":49.9932,"apparentPower":165.0,"activePower":91.0,"reactivePower":-137.0,"cosPhi":1.0},"L2Data":{"acCurrent":0.71875,"acVoltage":232.328,"acFrequency":49.9929,"apparentPower":169.0,"activePower":91.0,"reactivePower":-140.0,"cosPhi":1.0},"L3Data":{"acCurrent":0.726562,"acVoltage":231.891,"acFrequency":49.9918,"apparentPower":167.0,"activePower":102.0,"reactivePower":-134.0,"cosPhi":1.0}},{"date":"2016-06-01
But i get no devices... Not even when i allow devices for 5 minutes...

The log tells me:
2016-06-13 09:26:53.740 Domoticz V3.5241 (c)2012-2016 GizMoCuz
2016-06-13 09:26:53.756 Build Hash: 141e2b2, Date: 2016-06-13 08:42:30
2016-06-13 09:26:54.100 Active notification subsystems: http (1/11)
2016-06-13 09:26:54.178 WebServer(HTTP) started on address: :: with port 8080
2016-06-13 09:26:54.959 WebServer(SSL) started on address: :: with port 443
2016-06-13 09:26:54.959 Proxymanager started.
2016-06-13 09:26:54.975 Starting shared server on: :::6144
2016-06-13 09:26:54.975 TCPServer: shared server started...
2016-06-13 09:26:54.975 RxQueue: queue worker started...
2016-06-13 09:26:56.553 Incoming connection from: 192.168.1.82
2016-06-13 09:26:57.022 EventSystem: reset all events...
2016-06-13 09:26:57.053 SolarEdgeAPI Worker started...
2016-06-13 09:26:57.053 EventSystem: reset all device statuses...
2016-06-13 09:26:57.084 EventSystem: Started
2016-06-13 09:33:35.958 Incoming connection from: ::1
2016-06-13 09:41:02.979 Incoming connection from: 192.168.1.71
2016-06-13 09:48:12.273 New sensors allowed for 5 minutes...
2016-06-13 09:48:34.856 SolarEdgeAPI Worker stopped...
2016-06-13 09:48:34.856 SolarEdgeAPI Worker started...
2016-06-13 10:02:08.591 Incoming connection from: 192.168.1.181
Can anyone point me in the right direction ?
Hi Guys, did someone find a solution to this? I get the similar issue... :!:
rizzah
Posts: 75
Joined: Monday 17 October 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Groningen
Contact:

Re: SolarEdge api

Post by rizzah »

I had it working for a day or two, all of the sudden the devices were added and were receiving data, after couple days it stopped, eventho i didnt touch anything.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest