New Python plugin: Domoticz SolarEdge_ModbusTCP

Moderator: leecollings

MikeyMan
Posts: 242
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by MikeyMan »

So it seems i have a similar issue as above, however, i dont have domoticz in docker.

Log shows:

Code: Select all

2023-01-13 20:24:35.034 Error: SolarEdge Inverter: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/solaredge-modbustcp/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2023-01-13 20:24:35.729 Error: SolarEdge Inverter: Traceback (most recent call last):
2023-01-13 20:24:35.729 Error: SolarEdge Inverter: File "/home/pi/domoticz/plugins/solaredge-modbustcp/plugin.py", line 54, in <module>
2023-01-13 20:24:35.729 Error: SolarEdge Inverter: import solaredge_modbus
2023-01-13 20:24:35.729 Error: SolarEdge Inverter: ModuleNotFoundError: No module named 'solaredge_modbus'
2023-01-13 20:24:45.283 Error: (Evohome) login failed with message: attempt_limit_exceeded
Version is:
pi@raspberrypi:~ $ python3 --version
Python 3.9.2
What could this be?
User avatar
Sjonnie2017
Posts: 377
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Sjonnie2017 »

_deleted_

Sorry! Wrong topic! :oops:
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by McMelloW »

Hi to all.

My SolarEdge Inverter went down, so I had a new inverter installed. After the installation, in Domoticz, I changed the hardware to a new IP address and a new port (1502) and activate the hardware in Domoticz. It is calling my inverter OK and receiving new data also.
However after the remplacement of the inverter, Domoticz shows the Total Energy now negative and the history now showing the data in a very small scale and negative as well.
My old inverter was SE3500H (2017) single phase, with text display. My new inverter is a SE3500H (2023) single phase, without a text display

How can I change this or
Greetings McMelloW
Micha123
Posts: 66
Joined: Monday 28 August 2017 16:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by Micha123 »

It wil be Nice to trigger it not every some time, but an option to trigger it also on device IDX.

It wil be fine if it can be triggered on other device, like my P1 meter, then i have most actual data from my meter and SolarEdge inverter, i have also an dz script running it calculates the data what energy is now used.

But the plugin is working perfectly also with an older type of SolarEdge (with display) inverter. Thank you for that.

Until now im used the perl script to bring the data into domoticz. But your work is perfect.
hjzwiers
Posts: 303
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

I have just installed a new system with battery and metering and was wondering the result if I used modbus. Turned modbus on on the converter and installed the files.

In the first go I installed the Modbus TCP with github (git clone https://github.com/addiejanssen/domotic ... plugin.git) and ran sudo pip3 install -r requirements.txt

It all went well, but I wanted to use the battery and metering .....

I then used the 2.0.4. version, downloaded it to the PC and transferred the files (with PSFTP) to the proper directory with but only had failures. I deleted it all and left it but I am disappointed, what did I do wrong?
hjzwiers
Posts: 303
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by hjzwiers »

I keep getting the following errors:

2023-09-02 13:05:04.963 Error: Solaredge ModbusTCP: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/hjz/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: Traceback (most recent call last):
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: File "/home/hjz/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 68, in <module>
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: import solaredge_modbus
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 157, in <module>
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: class SolarEdge:
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 163, in SolarEdge
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: wordorder = Endian.Big
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: File "/usr/lib/python3.9/enum.py", line 405, in __getattr__
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: raise AttributeError(name) from None
2023-09-02 13:05:04.969 Error: Solaredge ModbusTCP: AttributeError: Big

I have version python 3.9.2 running with pip3 23.2.1

I'm fully stuck now ..........
jawadde
Posts: 2
Joined: Saturday 22 February 2020 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by jawadde »

Any update on this... facing exactly the same problem, and also stuck

thanks
User avatar
waltervl
Posts: 7002
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by waltervl »

Perhaps try the discussions on the GitHub repository. https://github.com/addiejanssen/domotic ... iscussions
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
infoed
Posts: 22
Joined: Monday 21 October 2024 14:33
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by infoed »

After Domoticz upgrade to 2026.1, the docker version, I cannot get the plugin to work, using:
pymodbus 3.6.9
pyserial 3.5
pyserial-asyncio 0.6
solaredge-modbus 0.8.0
Python 3.11

I 'm getting these errors:
2026-03-30 15:57:19.555 Error: SolarEdgeMODBUS: (SolarEdge_ModbusTCP) failed to load 'plugin.py'.
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: Traceback (most recent call last):
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: File "/opt/domoticz/userdata/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 54, in
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: import solaredge_modbus
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: File "/opt/venv/lib/python3.11/site-packages/solaredge_modbus/init.py", line 4, in
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: from pymodbus.constants import Endian
2026-03-30 15:57:19.557 Error: SolarEdgeMODBUS: ImportError: cannot import name 'Endian' from 'pymodbus.constants' (/opt/venv/lib/python3.11/site-packages/pymodbus/constants.py)

The import error ('Endian') is new to me. Checked the mentioned filenames and they all exist.
Tried older / newer pymodbus,, no help.
On the older Domoticz 2024.7 it works, even with pymodbus 3.7.3 and solaredge_modus 0.8.0

Noticed that domoticz 2026.1 (docker) is using pyhton 3.11 where 2024.7 is using 3.9.2

In Google searches (also AI mode) could not find a hint.
Example: https://www.claudiokuenzler.com/blog/15 ... an-upgrade

Any ideas?
User avatar
madpatrick
Posts: 876
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by madpatrick »

---- removed ----
Last edited by madpatrick on Sunday 21 June 2026 16:08, edited 1 time in total.
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
eddieb
Posts: 428
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by eddieb »

tnx, nice to see that you are trying to do work on these python plugins ...
Seems addie is not very active lately ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
MikeyMan
Posts: 242
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by MikeyMan »

Please forgive me my lack of knowledge on git... But is there a way to do an in place git pull to the new branch?
User avatar
imautohuttraeger
Posts: 376
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by imautohuttraeger »

A while ago, @jvdz made a fork due to the fact, that the owner of this plugin does not seem to actively work on this anymore:

viewtopic.php?t=43707

Besides other things, this fork also includes pure data from the battery (rather than a combined number solar + battery charging or discharging)

Is there any chance to get this also I to the basic plugin?
Stop, look and listen.
MikeyMan
Posts: 242
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by MikeyMan »

Would be nice if @addiejanssen opened this up a bit for community development.
User avatar
madpatrick
Posts: 876
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by madpatrick »

---- removed ----
Last edited by madpatrick on Sunday 21 June 2026 16:08, edited 1 time in total.
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
madpatrick
Posts: 876
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by madpatrick »

---- removed ----
Last edited by madpatrick on Sunday 21 June 2026 16:08, edited 1 time in total.
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
MikeyMan
Posts: 242
Joined: Wednesday 17 October 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by MikeyMan »

madpatrick wrote: Sunday 21 June 2026 10:18
MikeyMan wrote: Sunday 21 June 2026 9:06 Please forgive me my lack of knowledge on git... But is there a way to do an in place git pull to the new branch?
See : https://github.com/MadPatrick/Solaredge_modbustcp
i've maintain this until the orginal repo is maintained by addie again

Yes but can i keep my current install alive while switching to that repo?
User avatar
madpatrick
Posts: 876
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by madpatrick »

---- removed ----
Last edited by madpatrick on Sunday 21 June 2026 16:07, edited 1 time in total.
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
imautohuttraeger
Posts: 376
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by imautohuttraeger »

madpatrick wrote: Sunday 21 June 2026 10:14
I've included the meters and inverter also
That's great. Will try it within the next days and would be very happy to have it working again.

Would it be possible to add the information about this to the list of plugins, so a user becomes aware of it in case she/he is not aware of this forum posting?
https://wiki.domoticz.com/Plugins

EDIT: And also to the SolarEdge page:
https://wiki.domoticz.com/SolarEdge#Usi ... e_inverter
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 376
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: New Python plugin: Domoticz SolarEdge_ModbusTCP

Post by imautohuttraeger »

As a dummy I am a little bit overstrained, so I need some help in order to correctly install the fork rather than the original:

So the starting point is
https://github.com/MadPatrick/domoticz- ... tcp-plugin

In the instructions, the following line is a copy from the original:
"Download the plugin zip-file from releases"

It leads to the original by @addiejammsen:
https://github.com/addiejanssen/domotic ... n/releases

Is my understanding correct, that I have to change the URL to the one of @MadPatrick?
https://github.com/MadPatrick/domoticz- ... n/releases
Stop, look and listen.
Post Reply