Python SolarEdge modbus script via lan

Python and python framework

Moderator: leecollings

CronoS
Posts: 135
Joined: Wednesday 15 July 2015 23:40
Target OS: -
Domoticz version:
Contact:

Re: Python SolarEdge modbus script via lan

Post by CronoS »

I have enabled the Modbus over TCP in my solaredge configuration. When I do a Telnet session now on WIndows 10 to the port 1502, I see that the port is open, so that is looking OK.
I have installed the sunspec_ardexa script on my Raspberry Pi.. but every command that I try basically, for example: sunspec_ardexa --v discover 192.168.0.250 1-20 --port 1502 gives me the error "Cannot find the address: X"..
Because I use Python 2.7, I also added the timeout to client.py, but that didn't change much either

I think the Modbus config is OK on my solaredge, Imagebut I don't know what can cause this issue.... Could it be that this script is not compatible in some way with my Solaredge

Edit-> I found a Windows modbustool on the Internet, with this tool the Solaredge is working OK... So it has something to do with the Sunspec_ardexa script in the Raspberry:
Image
What are the prerequisites for using this script?
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Python SolarEdge modbus script via lan

Post by freijn »

Ho Cronos

From the link :

https://pypi.org/project/sunspec-ardexa/

Did you do the dependancies install ? :

## Install On a raspberry Pi, or other Linux machines (arm, intel, mips or whetever), make sure Python is installed (which it should be). Then install the dependancies and this package as follows: ` git clone --recursive https://github.com/sunspec/pysunspec.git cd pysunspec sudo python setup.py install sudo pip install sunspec_ardexa `

Python 2.7 is the running/working version i have as well.
CronoS
Posts: 135
Joined: Wednesday 15 July 2015 23:40
Target OS: -
Domoticz version:
Contact:

Re: Python SolarEdge modbus script via lan

Post by CronoS »

freijn wrote: Wednesday 26 August 2020 11:29 Ho Cronos

From the link :

https://pypi.org/project/sunspec-ardexa/

Did you do the dependancies install ? :

## Install On a raspberry Pi, or other Linux machines (arm, intel, mips or whetever), make sure Python is installed (which it should be). Then install the dependancies and this package as follows: ` git clone --recursive https://github.com/sunspec/pysunspec.git cd pysunspec sudo python setup.py install sudo pip install sunspec_ardexa `

Python 2.7 is the running/working version i have as well.
Yes. I did that... Unfortunately no luck. The command by itself seems to work, but no output when I run it.
SavioThecnic
Posts: 13
Joined: Thursday 27 August 2020 9:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Italy
Contact:

Re: Python SolarEdge modbus script via lan

Post by SavioThecnic »

Hi guys now I read the SolarEdge on Domoticz via
the API but it's not very fast and I don't have a lot of data

But what does this method consist of?
What must be changed on the SolarEdge inverter?
If you enable it, I still have the verification of my inverter
via the SolarEdge cloud?

Thank you
rogerthn
Posts: 25
Joined: Thursday 26 July 2018 12:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python SolarEdge modbus script via lan

Post by rogerthn »

SavioThecnic wrote: Monday 03 May 2021 22:11 Hi guys now I read the SolarEdge on Domoticz via
the API but it's not very fast and I don't have a lot of data

But what does this method consist of?
What must be changed on the SolarEdge inverter?
If you enable it, I still have the verification of my inverter
via the SolarEdge cloud?

Thank you
If you have a SE inverter with NO display, I've SE7K
Get SSID and password e.g. scan QR
Flipp to P, connect to SSID with e.g. a PC and open http://172.16.0.1/
Enable modbus TCP
Good luck :o
SavioThecnic
Posts: 13
Joined: Thursday 27 August 2020 9:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Italy
Contact:

Re: Python SolarEdge modbus script via lan

Post by SavioThecnic »

I have HD Wave Inverter with LCD
I already have an RS-232 card to communicate with the counter module
and is already connected to the Eternet network
So do I have to do anything else?
But I want to understand if I enable this it works keep me talking to the cloud solaredge
rogerthn
Posts: 25
Joined: Thursday 26 July 2018 12:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python SolarEdge modbus script via lan

Post by rogerthn »

I do not know if your inverter will keep talking to the cloud solaredge.
Mine does :D
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Python SolarEdge modbus script via lan

Post by eddieb »

enabling modbus on the inverter does not change the behaviour to the solaredge cloud management platform.
It just gives you the option to read the inverter every 10 seconds and that works fine here !
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest