SolarEdge in Latest Beta / Port Number
Moderator: leecollings
-
- Posts: 15
- Joined: Sunday 26 April 2015 21:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2020.2
- Location: Nederland
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
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
-
- Posts: 15
- Joined: Sunday 26 April 2015 21:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2020.2
- Location: Nederland
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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?
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?
-
- Posts: 15
- Joined: Sunday 26 April 2015 21:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2020.2
- Location: Nederland
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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.
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.
-
- Posts: 14
- Joined: Monday 02 February 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2336
- Location: Netherlands
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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 ?
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 ?
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
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
-
- Posts: 4
- Joined: Sunday 31 May 2015 18:39
- Target OS: -
- Domoticz version:
- Location: Netherlands
Re: SolarEdge in Latest Beta / Port Number
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
API speccification: http://www.solaredge.com/files/pdfs/se_ ... ng_api.pdf
-
- Posts: 12
- Joined: Thursday 10 April 2014 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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.
edited to correct an error in the code
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
Last edited by Yobby on Wednesday 03 June 2015 8:54, edited 1 time in total.
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
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
-
- Posts: 116
- Joined: Saturday 13 July 2013 13:28
- Target OS: Linux
- Domoticz version: Latest
- Location: Hilversum, The Netherlands
- Contact:
Re: SolarEdge in Latest Beta / Port Number
The Inverter uploads every 5 min to solaredge platform.
Rasp Pi 2B: 3x DS18S20 (1-wire), BME280 (i2c)
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
-
- Posts: 12
- Joined: Thursday 10 April 2014 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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.Pietertje wrote:Hi Yobby,
Can you explain more how to implement in Domoticz because this is a better way as through PVoutput
- 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.
Replace key/id values with your own, and it should work.
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.Normally we get every 5 minutes the data from the hadware
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.
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
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
-
- Posts: 12
- Joined: Thursday 10 April 2014 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: SolarEdge in Latest Beta / Port Number
Try changing this line:
to this
Code: Select all
if not vSolarEnergy == nil then
Code: Select all
if vSolarEnergy ~= nil then
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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.
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.
-
- Posts: 12
- Joined: Thursday 10 April 2014 9:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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)Pietertje wrote:Changed that and now see data but a little bit strange output dayproduction is same as input E
This line uses regular expressions to extract the datahow to read the other data from the text file.
Code: Select all
vMsg, vSolarEnergy, vSolarPower = vX:match("lastUpdateTime...([ %d:-]+).*lifeTimeData%D-([%d.]+).*currentPower%D-([%d.]+)")
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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.
-
- Posts: 14
- Joined: Monday 02 February 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2336
- Location: Netherlands
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
Myself i cannot write a program but maybe someone else is capable of using the software here...
https://github.com/jbuehl/solaredge
-
- Posts: 12
- Joined: Monday 15 September 2014 11:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: 8281
- Contact:
Re: SolarEdge in Latest Beta / Port Number
Hi Jan,
Question ofcourse is does this support the new or old software from SolarEdge. Will try nextweek have still old raspberry as spare.
Question ofcourse is does this support the new or old software from SolarEdge. Will try nextweek have still old raspberry as spare.
-
- Posts: 14
- Joined: Monday 02 February 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2336
- Location: Netherlands
- Contact:
Re: SolarEdge in Latest Beta / Port Number
Hopefully the new version, this peace of software includes almost everything that can be logged from the solaredge inverter
-
- Posts: 1
- Joined: Friday 19 June 2015 17:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: SolarEdge in Latest Beta / Port Number
Yobby,
Where do i get de API key
Jerom
Where do i get de API key
Jerom
-
- Posts: 625
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: SolarEdge in Latest Beta / Port Number
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
Who is online
Users browsing this forum: No registered users and 1 guest