Looking forward to that.
SolarEdge via LAN interface
Moderators: leecollings, remb0
-
- Posts: 3
- Joined: Tuesday 04 February 2020 18:26
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
Hi everyone.
I can communicate with my solaredge SE3000H with command on windows console.
I have created 11 dummy devices with idx' numbers, correct ip and port of domoticz sever.
I have this dzVent script that doesn't update dummy devices :
return {
on = {
timer = {'every minute'}
},
execute = function(domoticz,device)
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
end
}
All seems to work and no errors appears in logging domotics.
Domotics create the file SEoutput.txt with correct content:
1581066840,4,1822,1850,129345,245.40,7.44,390.50,4.74,32.55,0,0
bat devices don't receive any updating and report all 0 value.
Thanks everybody who will help me.
I can communicate with my solaredge SE3000H with command on windows console.
I have created 11 dummy devices with idx' numbers, correct ip and port of domoticz sever.
I have this dzVent script that doesn't update dummy devices :
return {
on = {
timer = {'every minute'}
},
execute = function(domoticz,device)
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
end
}
All seems to work and no errors appears in logging domotics.
Domotics create the file SEoutput.txt with correct content:
1581066840,4,1822,1850,129345,245.40,7.44,390.50,4.74,32.55,0,0
bat devices don't receive any updating and report all 0 value.
Thanks everybody who will help me.
-
- Posts: 3
- Joined: Tuesday 04 February 2020 18:26
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
I have to add that if I add a the command
Print 'Hallo' at the beginning of script perl solar2.pl, at the beginning of file SEoutput.txt Domoticz write correctly Hallo and values of my solaredge.
I think my script Solar2.pl have something wrong bat I don't know what.
I attach my file that I have modified in txt file.
Thanks
Print 'Hallo' at the beginning of script perl solar2.pl, at the beginning of file SEoutput.txt Domoticz write correctly Hallo and values of my solaredge.
I think my script Solar2.pl have something wrong bat I don't know what.
I attach my file that I have modified in txt file.
Thanks
- Attachments
-
- solar2.txt
- (22.9 KiB) Downloaded 81 times
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Hi
You are missing the -z parameter
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
should be
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -z -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
You are missing the -z parameter
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
should be
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -z -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Anybody worked on this already ?Micha123 wrote: ↑Tuesday 15 October 2019 16:19 I found sunspec_ardexa
It ia a python script and is working much faster then the pearl script
https://pypi.org/project/sunspec-ardexa
I have found that
sunspec_ardexa log 192.168.1.140 1 /home/pi/sun
Generates a nice .csv file in the logdir. But where or in what file is this generated as I would like to make the json calls from
there directly into the Domoticz
Anybody ?
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Contacted the support email address.
Till now very responsive , hopefully I get some hints so can modify the script for Domoyicz
Till now very responsive , hopefully I get some hints so can modify the script for Domoyicz

-
- Posts: 3
- Joined: Tuesday 04 February 2020 18:26
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
Thanks frejjn. Now is all OK.freijn wrote: ↑Saturday 08 February 2020 21:41 Hi
You are missing the -z parameter
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
should be
domoticz.utils.osExecute('perl C:\\Mia\\solar2.pl -n -z -m 0 192.168.1.13 > C:\\Mia\\SEoutput.txt')
domoticz.log()
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Guys,
Who already installed the sunspec_ardexa python tool ?
Can you please run the below command and tell me in which directory your sunspec_ardexa.py is located ?
I like to see the full path.
If you do not understand the question.. please run the below command and sent the output
I have found where I can / have to change the file in order to use sunspec_ardexa as an interface between the SolarEdge and Domoticz.
I will have a test version ready this week, but need some help from you guys for testing on serveral systems and feedback on the install.
Will keep you updated...
Frank
Who already installed the sunspec_ardexa python tool ?
Can you please run the below command and tell me in which directory your sunspec_ardexa.py is located ?
I like to see the full path.
If you do not understand the question.. please run the below command and sent the output
Code: Select all
sudo find / -name sunspec_ardexa.py
I will have a test version ready this week, but need some help from you guys for testing on serveral systems and feedback on the install.
Will keep you updated...
Frank
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge via LAN interface
Frank,
I am not sure or i use it. But it is on my RPi present anyway.
Code: Select all
pi@mcmellow-pi:~ $ sudo find / -name sunspec_ardexa.py
/usr/local/lib/python2.7/dist-packages/sunspec_ardexa.py
Greetings McMelloW
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Perfect, McMellow
Same place as me
If I have made my modifications to the file, I think you would like to use it
Same place as me

If I have made my modifications to the file, I think you would like to use it

- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
-
- Posts: 28
- Joined: Thursday 26 July 2018 12:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
@Jackb Many thanks!
I do have it working with update every minute when there is no light and "every second" when my Aeotec ZW074 MultiSensor Gen5+ gives Lux > 0 but energy Today in device SolarEdge Actual Power DC and AC is lower than https://monitoringpublic.solaredge.com/ ... /dashboard
Any suggestions?
PS
Crontab entry
Code: Select all
1 0 * * * /home/pi/scripts/SolarEdge.sh > /tmp/SolarEdge.log 2>&1
Code: Select all
#!/bin/bash
echo "$(date +%Y-%m-%d\ %H:%M:%S.%N) start"
HOUR=$(date +%H)
while [ "$HOUR" -lt 23 ]
do
Lux=$(wget -O - -q "http://192.168.C.D:8080/json.htm?type=devices&rid=63" | grep Data | awk -F '"' '{print $4}' | awk '{print $1}')
if [ "$Lux" -eq 0 ]
then
/usr/bin/perl /home/pi/scripts/SolarEdge.pl -m 0 -z 192.168.C.D
status=$?
if [ "$status" -ne 0 ];then
echo "$(date +%Y-%m-%d\ %H:%M:%S.%N) status = $status"
fi
/bin/sleep 60
else
/usr/bin/perl /home/pi/scripts/SolarEdge.pl -m 0 -z 192.168.C.D
status=$?
if [ "$status" -ne 0 ];then
echo "$(date +%Y-%m-%d\ %H:%M:%S.%N) status = $status"
fi
/bin/sleep 1
fi
HOUR=$(date +%H)
done
echo "$(date +%Y-%m-%d\ %H:%M:%S.%N) done"
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
I fire the script to update the solar when the P1 update comes in.
I do fire it from the update event of the P1.
Within this P1 update event you could check the Lux...
I do fire it from the update event of the P1.
Within this P1 update event you could check the Lux...
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Ohhh sorry... Still I would solve it in Lua of Dzvents.. not in bash...
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
Guys,
I have started a new topic for the Python SolarEdge script
https://www.domoticz.com/forum/viewtopi ... 65&t=31455
I have started a new topic for the Python SolarEdge script
https://www.domoticz.com/forum/viewtopi ... 65&t=31455
-
- Posts: 28
- Joined: Thursday 26 July 2018 12:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
Thanks!freijn wrote: ↑Sunday 23 February 2020 20:44 Guys,
I have started a new topic for the Python SolarEdge script
https://www.domoticz.com/forum/viewtopi ... 65&t=31455
My issue is that the dummy devices (Instant+Counter, Computed) gets correctly? updated with Power but the calculated? Energy is a bit to low.
Today I do have DC Energy = 6.084 kWh and AC = 5.994 kWh
https://monitoringpublic.solaredge.com/ ... /dashboard has 6.185 kWh
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge via LAN interface
I do not have computed but from device :
Perfect match.. although SolarEdge does a round up...
Perfect match.. although SolarEdge does a round up...
-
- Posts: 28
- Joined: Thursday 26 July 2018 12:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: SolarEdge via LAN interface
OK, I'll change AC Power to From device and see, fingers crossed
You can get three decimals on the SolarEdge page if you change to month view and hover with the mouse over the days

You can get three decimals on the SolarEdge page if you change to month view and hover with the mouse over the days

Who is online
Users browsing this forum: Google [Bot] and 1 guest