SolarEdge in Latest Beta / Port Number

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

Moderator: leecollings

Heelderpeel
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

Post 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
Heelderpeel
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

Post 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?
Heelderpeel
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

Post 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.
Jantje1972
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

Post 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 ?
Pietertje
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

Post 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
rharmsen
Posts: 4
Joined: Sunday 31 May 2015 18:39
Target OS: -
Domoticz version:
Location: Netherlands

Re: SolarEdge in Latest Beta / Port Number

Post 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
Yobby
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

Post 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
Last edited by Yobby on Wednesday 03 June 2015 8:54, edited 1 time in total.
Pietertje
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

Post 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
antwan
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

Post by antwan »

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
Yobby
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

Post 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.
Pietertje
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

Post 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
Yobby
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

Post by Yobby »

Try changing this line:

Code: Select all

if not vSolarEnergy == nil then
to this

Code: Select all

if vSolarEnergy ~= nil then
Pietertje
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

Post 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 :D but a little bit strange output dayproduction is same as input E how to read the other data from the text file.
Yobby
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

Post by Yobby »

Pietertje wrote:Changed that and now see data :D 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.]+)")
Pietertje
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

Post 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.
Jantje1972
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

Post 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
Pietertje
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

Post 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.
Jantje1972
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

Post by Jantje1972 »

Hopefully the new version, this peace of software includes almost everything that can be logged from the solaredge inverter
Jerom
Posts: 1
Joined: Friday 19 June 2015 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SolarEdge in Latest Beta / Port Number

Post by Jerom »

Yobby,

Where do i get de API key

Jerom
jannl
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

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests