Page 4 of 9
Re: SolarEdge in Latest Beta / Port Number
Posted: Sunday 26 April 2015 22:29
by Heelderpeel
Hello,
It seems that I have the same problem as "pietertje"
I also receive only at the beginning and at the end of the day data.
(on the edge solar portal everything is ok)
with the following error message:
Sun Apr 26 22:18:55 2015 Error: SolarEdge: Unknown Type: 1408
Sun Apr 26 22:18:55 2015 Error: SolarEdge: Something not handled correctly, having extra bytes!
and
Sun Apr 26 22:20:00 2015 Error: Zonnepanelen hardware (2) thread seems to have ended unexpectedly
I also have another problem I have two inverters how can I add them both.
I set them both but only get data from one
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 27 April 2015 21:36
by Heelderpeel
Problem solved partly, I get no error messages in Domoticz anymore.
Only I do regularly have the following error messages on the inverter:
Server 1 ping failed
Server 2 ping failed
Server 3 ping failed
Server G ping failed
anyone an idea where this might come from?
Furthermore, I set two inverter but only get data from one
Does anyone have an idea how I can fix this?
Re: SolarEdge in Latest Beta / Port Number
Posted: Tuesday 28 April 2015 10:45
by Heelderpeel
Unfortunately problem back
21:12 yesterday it was still good.
21:22 Error: Zonnepanelen hardware (2) thread seems to have ended unexpectedly
22:48 Error: SolarEdge: Unknown Type: 1408 & Error: SolarEdge: Something not handled correctly, having extra bytes!
6:21:18 --- 6:41:18 everything is gone well
06:46 until now a couple of times Error: Zonnepanelen hardware (2) thread seems to have ended unexpectedly.
Re: SolarEdge in Latest Beta / Port Number
Posted: Sunday 17 May 2015 14:25
by Jantje1972
Is anybody having succes with this yet, for me its still not working.
Only error message in the log file is Error: SolarEdge: Unknown Type: 1408 & Error: SolarEdge: Something not handled correctly, having extra bytes!
Please Advice what to do ?
Re: SolarEdge in Latest Beta / Port Number
Posted: Friday 22 May 2015 8:46
by Pietertje
Due to changes in the soft by SolarEdge in the newer systems, logging is not reliable any more.
We have to wait till one of the experts looks into it. For the time being you could get your figures of course from PVOUTPUT.
So at least you have everything complete.
I wish you sunny days
Re: SolarEdge in Latest Beta / Port Number
Posted: Sunday 31 May 2015 18:42
by rharmsen
Perhaps someone can implement a new SolarEdge module which retrieves data via the SolarEdge API
API speccification:
http://www.solaredge.com/files/pdfs/se_ ... ng_api.pdf
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 01 June 2015 11:25
by Yobby
A question for those where it works (or worked):
How often does it update?
It never worked for me, so I made a lua-script to get the data from SolarEdge.
It fetches data every 15 minutes, and updates a virtual device in Domoticz with it.
This has been running fine since december last year.
Code: Select all
-- /home/pi/domoticz/scripts/lua/script_time_SolarEdge.lua
-- adjust these values to your settings
vSeApiKey = 'XXXXXXXXXXXXXXXXXXXXXXXX' -- api-key from SolarEdge
vSeSiteId = 00000 -- siteid from SolarEdge
vSolarDevId = 0 -- id of the virtual device in Domoticz Devices
vInterval = 15 -- update-interval in minutes (between 10 and 60)
commandArray = {}
if os.date("%M") % vInterval == 0 then
vTxt = "./scripts/lua/seapi.txt"
vURL = "https://monitoringapi.solaredge.com/site/" .. vSeSiteId .. "/overview?api_key=" .. vSeApiKey
vCmd = "curl " .. vURL .. " >" .. vTxt
vSuccess = os.execute(vCmd)
io.input(vTxt)
vX = io.read("*all")
vMsg, vSolarEnergy, vSolarPower = vX:match("lastUpdateTime...([ %d:-]+).*lifeTimeData%D-([%d.]+).*currentPower%D-([%d.]+)")
if vSolarEnergy ~= nil then
commandArray[1] = {['UpdateDevice'] = vSolarDevId .. "|0|" .. vSolarPower .. ";" .. vSolarEnergy}
end
print(vMsg .. " solar input E: " .. vSolarEnergy .. " P: " .. vSolarPower)
end
return commandArray
edited to correct an error in the code
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 01 June 2015 13:31
by Pietertje
Hi Yobby,
Can you explain more how to implement in Domoticz because this is a better way as through PVoutput
Normally we get every 5 minutes the data from the hadware
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 01 June 2015 17:05
by antwan
The Inverter uploads every 5 min to solaredge platform.
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 01 June 2015 17:07
by Yobby
Pietertje wrote:Hi Yobby,
Can you explain more how to implement in Domoticz because this is a better way as through PVoutput
First you need a virtual device to gather the data. If it was working before and you already have a device with SolarEdge data, you may be able to use that instead.
- goto Setup > Hardware
- Add hardware of Type Dummy
- When added, click Create Virtual Sensors
- Sensor type: Electric (Instant+Counter)
- goto Setup > Devices
- click on the green button with an arrow of the newly created virtual device and give it a name.
- take note of the Idx of that device, as it is used in the lua-script I pasted above.
Then put the lua-script above in a file named
script_time_SolarEdge.lua in the directory
domoticz/scripts/lua/
Replace key/id values with your own, and it should work.
Normally we get every 5 minutes the data from the hadware
In the api-documentation, it says 15 minute interval. I have it set to 10 minutes, but half the time there's no new data yet.
Keep in mind that the api has a limitation of 200 api-calls per day. If you have other services using the same data (eg. PVoutput), those are counted as well.
Re: SolarEdge in Latest Beta / Port Number
Posted: Monday 01 June 2015 18:13
by Pietertje
Yes I did this allready data is logged allso complete in the txt file
2015-06-01 17:30:00.631 LUA: 2015-06-01 17:30:00 solar input E: 2517422.0 P: 512.0
idx is 79 of the device but no results shown what do I miss
Re: SolarEdge in Latest Beta / Port Number
Posted: Tuesday 02 June 2015 8:35
by Yobby
Try changing this line:
to this
Re: SolarEdge in Latest Beta / Port Number
Posted: Tuesday 02 June 2015 19:24
by Pietertje
2015-06-02 19:10:00.940 LUA: 2015-06-02 18:59:58 solar input E: 2521114.0 P: 92.0
2015-06-02 19:10:00.941 EventSystem: Script event triggered: /root/domoticz/scripts/lua/script_time_SolarEdge.lua
Changed that and now see data
but a little bit strange output dayproduction is same as input E how to read the other data from the text file.
Re: SolarEdge in Latest Beta / Port Number
Posted: Wednesday 03 June 2015 8:52
by Yobby
Pietertje wrote:Changed that and now see data
but a little bit strange output dayproduction is same as input E
That E value is the Lifetime Energy Production in Wh. Dayproduction is calculated automatically by Domoticz by substracting that value at the start of the day from the current value. To get the graphs usable again, just delete the first point (by Shift-clicking on that point on the graph)
how to read the other data from the text file.
This line uses
regular expressions to extract the data
Code: Select all
vMsg, vSolarEnergy, vSolarPower = vX:match("lastUpdateTime...([ %d:-]+).*lifeTimeData%D-([%d.]+).*currentPower%D-([%d.]+)")
Re: SolarEdge in Latest Beta / Port Number
Posted: Wednesday 03 June 2015 9:36
by Pietertje
Thx everything running ok. But I think we can Curl ofcourse more info from SolarEdge directly. i.e. VC DC temp etc . I'will try so find something My inverter SE3000 is not supported by Domoticz due to the newer soft. My older one SE2200 is ok.
Re: SolarEdge in Latest Beta / Port Number
Posted: Wednesday 03 June 2015 15:26
by Jantje1972
I found someone who made a python program to read out all the values of the inverter itself, even data from the power optimizers and so on.
Myself i cannot write a program but maybe someone else is capable of using the software here...
https://github.com/jbuehl/solaredge
Re: SolarEdge in Latest Beta / Port Number
Posted: Wednesday 03 June 2015 18:17
by Pietertje
Hi Jan,
Question ofcourse is does this support the new or old software from SolarEdge. Will try nextweek have still old raspberry as spare.
Re: SolarEdge in Latest Beta / Port Number
Posted: Wednesday 03 June 2015 20:39
by Jantje1972
Hopefully the new version, this peace of software includes almost everything that can be logged from the solaredge inverter
Re: SolarEdge in Latest Beta / Port Number
Posted: Friday 19 June 2015 17:15
by Jerom
Yobby,
Where do i get de API key
Jerom
Re: SolarEdge in Latest Beta / Port Number
Posted: Friday 19 June 2015 17:37
by jannl
I think it is the admin tab in the portal if you do not have that tab, ask your installer for your api key, thats what I did