Issues running Solaredge_Modbus on Rasp. Pi 5 and Python 3.11

Python and python framework

Moderator: leecollings

Post Reply
Diemux
Posts: 5
Joined: Tuesday 12 January 2021 16:49
Target OS: Windows
Domoticz version:
Contact:

Issues running Solaredge_Modbus on Rasp. Pi 5 and Python 3.11

Post by Diemux »

Hi All,

I have been running in to issues with my domoticz setup. I have a Solaredge inverter and have used the solaredge modbus plugin by Addie Janssen. It all worked but due to an error the Raspberry upgraded and the installation was broken.

I was able to restore the system but I'm no longer able to get this plugin working. The combination Python requirements is not valid to run on Bookworm/Python 3.11.
I have been going back and forth with the help of chat GPT to get stuff running but in ends up the same.

Log:
Spoiler: show
2025-07-18 12:24:13.908 Error: Solaredge Omvormer: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/domoticz/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/home/domoticz/.local/lib/python3.11/site-packages:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.11/dist-packages'.
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: Traceback (most recent call last):
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: File "/home/domoticz/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 16, in <module>
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: import solaredge_modbus
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: File "/home/domoticz/.local/lib/python3.11/site-packages/solaredge_modbus/__init__.py", line 7, in <module>
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: from pymodbus.client import ModbusTcpClient
2025-07-18 12:24:13.910 Error: Solaredge Omvormer: ImportError: cannot import name 'ModbusTcpClient' from 'pymodbus.client' (/home/domoticz/.local/lib/python3.11/site-packages/pymodbus/client/__init__.py)
I tried multiple versions of solaredge_modbus and pymodbus but found no working solution. Any tips?
User avatar
jvdz
Posts: 2334
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Issues running Solaredge_Modbus on Rasp. Pi 5 and Python 3.11

Post by jvdz »

Have a look here: viewtopic.php?t=43707

This version has the correct current requirements.txt and some extra options.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
eddieb
Posts: 340
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issues running Solaredge_Modbus on Rasp. Pi 5 and Python 3.11

Post by eddieb »

I am running the jvdz version on my docker/bookworm domoticz. 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