SolarEdge via LAN interface

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

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

Re: SolarEdge via LAN interface

Post by rogerthn »

I did try SolarEdge_ModbusTCP on bookworm with no luck :( :(
I ended up using pymodbus-2.4.0, pyserial-3.4 and solaredge_modbus-0.6.5 that I did have running on buster.
On bookworm as normal user

Code: Select all

mv /home/USER/.local/lib/python3.11/site-packages/* /home/USER/SAVED_site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/pymodbus ~/.local/lib/python3.11/site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/pymodbus-2.4.0.dist-info ~/.local/lib/python3.11/site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/pyserial-3.4.dist-info ~/.local/lib/python3.11/site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/serial ~/.local/lib/python3.11/site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/solaredge_modbus ~/.local/lib/python3.11/site-packages/
scp -pr pi@buster:/home/pi/.local/lib/python3.7/site-packages/solaredge_modbus-0.6.5.dist-info ~/.local/lib/python3.11/site-packages/
Total size of site packages 3.1MB, compressed 650kB.
Please let me know if I should try to upload the tarball
Good luck
jannl
Posts: 666
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: SolarEdge via LAN interface

Post by jannl »

This is how I got the modbus connection working, in buster.

Code: Select all

pip3 install modbus==0.8.0
pip3 uninstall pymodbus
pip3 install pymodbus==3.6.9
The code used runs in my customstartup.sh I use in docker.

The problem for me is more computing the correct value for raw sun production, escpecially when using a battery and ev-charger. There is actually no value in the modbus registers for the raw sun production. But I am getting there and may be I will take the occasional miscalculculation for granted.
User avatar
madpatrick
Posts: 661
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: SolarEdge via LAN interface

Post by madpatrick »

Hi Guys,

I have found this plugin which works with my Soleradge (and also of JvdZ)

https://github.com/addiejanssen/domotic ... tcp-plugin

This is how i got it to work

Code: Select all

git clone https://github.com/addiejanssen/domoticz-solaredge-modbustcp-plugin

Code: Select all

pip3 install -r requirements.txt

Code: Select all

pip3 uninstall pymodbus

Code: Select all

pip3 install -U pymodbus==2.5.3
Restart your domoticz and check your devices



Maybe somebody know how to use the latest version of pymodbus instead of downgrading ?
Using the latetst version give the following error

Code: Select all

No module named 'pymodbus.client.sync'
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
jannl
Posts: 666
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: SolarEdge via LAN interface

Post by jannl »

It works here with pymodbus 3.6.9 as is in my previous post.
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: SolarEdge via LAN interface

Post by jvdz »

jannl wrote: Tuesday 06 May 2025 9:35 It works here with pymodbus 3.6.9 as is in my previous post.
That indeed works too! Thanks for sharing.

EDIT: When you update requirements.txt in the plugin directory to:

Code: Select all

pymodbus==3.6.9
solaredge_modbus==0.8.0
and then run : sudo pip3 install -r /home/pi/domoticz/plugins/SolarEdge/requirements.txt
It will also be fine as the newer version of pymodbus is uninstalled in favor of 3.6.9
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest