Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Moderators: leecollings , remb0
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Tuesday 23 December 2025 16:19
Hi
Still struggeling with modbus tcp plugin
For test I used another pi on which I only installed domoticz
I followed all wiki instructions but I get next errors
Code: Select all
2025-12-23 16:15:12.605 Error: pv: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/usr/lib/python313.zip:/usr/lib/python3.13:/usr/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.13/dist-packages'.
2025-12-23 16:15:12.795 Error: pv: Traceback (most recent call last):
2025-12-23 16:15:12.795 Error: pv: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 54, in <module>
2025-12-23 16:15:12.795 Error: pv: import solaredge_modbus
2025-12-23 16:15:12.796 Error: pv: ModuleNotFoundError: No module named 'solaredge_modbus'
Did I overlook something?
Last edited by
BartSr on Wednesday 24 December 2025 13:40, edited 1 time in total.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
waltervl
Posts: 6677 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Tuesday 23 December 2025 16:29
You seem to not correctly load the extra python module
solaredge_modbus
Check the wiki for some hints
https://wiki.domoticz.com/Using_Python_ ... leshooting
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Tuesday 23 December 2025 20:00
I did with this error as result
Code: Select all
2025-12-23 19:58:34.939 Error: pv hardware (2) thread seems to have ended unexpectedly
2025-12-23 19:58:47.453 Error: pv: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/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-12-23 19:58:47.557 Error: pv: Traceback (most recent call last):
2025-12-23 19:58:47.557 Error: pv: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 54, in <module>
2025-12-23 19:58:47.557 Error: pv: import solaredge_modbus
2025-12-23 19:58:47.557 Error: pv: ModuleNotFoundError: No module named 'solaredge_modbus'
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
madpatrick
Posts: 758 Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:
Post
by madpatrick » Tuesday 23 December 2025 21:15
Check if solaredge_modbus is installed.
This is missing
waltervl
Posts: 6677 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Wednesday 24 December 2025 0:40
Are you running Domoticz in a Docker container? As that changes the way you need to install plugins:
https://wiki.domoticz.com/Docker#Python_Plugins
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 9:35
Walter, before I tried with dz in docker.
Now I prepaired a raspberry solely for this plugin. No docker.
I get stuck on the 'solaredge_modbus' part
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
waltervl
Posts: 6677 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Wednesday 24 December 2025 11:41
Do you get errors or warning messages when you want to install the solaredge module with the command from the plugin folder
Code: Select all
sudo pip3 install -r requirements.txt
Edit: And I see that the plugin author just changed the requirements.txt file
https://github.com/addiejanssen/domotic ... ec4342449e
So you have to do a git pull and try again.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 13:38
after doing the sudo pip3 xxx (again) I get next warning which I faced before
Code: Select all
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
domoticz log keeps saying:
Code: Select all
2025-12-24 13:39:52.809 Error: pv: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/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-12-24 13:39:52.942 Error: pv: Traceback (most recent call last):
2025-12-24 13:39:52.942 Error: pv: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 54, in <module>
2025-12-24 13:39:52.942 Error: pv: import solaredge_modbus
2025-12-24 13:39:52.942 Error: pv: ModuleNotFoundError: No module named 'solaredge_modbus'
do I need to create a special environment? I did not read any in fregards to this plugin
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
jannl
Posts: 823 Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:
Post
by jannl » Wednesday 24 December 2025 14:34
Yes, you need to solve that warning, otherwise Domoticz cannot find the python libraries.
Easiest propably is to use docker. Do not forget to install de solaredge_modbus inside the container.
madpatrick
Posts: 758 Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:
Post
by madpatrick » Wednesday 24 December 2025 15:03
You need to setup your python and pip correctly
Code: Select all
sudo apt install python3
sudo apt install python3-pip -y
Check yuou distro how to install it correctly
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 16:20
@janni
Tried docker before but to much 'new' things to consider
@ madpatrick
Python and pip are already the newest versions (says bookworm os)
The real problem seems to be the solaredge_modbus lib.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
madpatrick
Posts: 758 Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:
Post
by madpatrick » Wednesday 24 December 2025 16:28
Have you tried
Code: Select all
pip3 install --break-system-packages solaredge_modbus
Check your installed modules
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 17:19
sudo pip3 install -r requirements.txt still results in:
Code: Select all
pi@raspberrypi:~/domoticz/plugins/domoticz-solaredge-modbustcp-plugin $ sudo pip3 install -r requirements.txt
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
pip3 list showed solaredge_modbus but still next error in domoticz after restart service
really weird to me (must be my lack of knowledge)
Code: Select all
2025-12-24 17:12:46.503 Error: pv: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/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-12-24 17:12:46.608 Error: pv: Traceback (most recent call last):
2025-12-24 17:12:46.608 Error: pv: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 54, in <module>
2025-12-24 17:12:46.608 Error: pv: import solaredge_modbus
2025-12-24 17:12:46.608 Error: pv: ModuleNotFoundError: No module named 'solaredge_modbus'
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
madpatrick
Posts: 758 Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:
Post
by madpatrick » Wednesday 24 December 2025 17:24
try this.... you have an error with installation of the module
Theplugin is different as the python package which you are missing
Code: Select all
pip3 install --break-system-packages solaredge_modbus
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 17:33
Is there a dedicated map where to navigate to before trying again?
Last edited by
BartSr on Wednesday 24 December 2025 17:44, edited 1 time in total.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
madpatrick
Posts: 758 Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:
Post
by madpatrick » Wednesday 24 December 2025 17:34
Code: Select all
/usr/local/lib/python3.11/dist-packages/solaredge_modbus
Depending on your python version
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 17:51
I tried into the xxxxx / solaredge_modbus map but nothing goes in there
Code: Select all
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: solaredge_modbus in /home/pi/.local/lib/python3.11/site-packages (0.8.0)
Requirement already satisfied: pymodbus>=3.5.0 in /home/pi/.local/lib/python3.11/site-packages (from solaredge_modbus) (3.11.4)
Requirement already satisfied: pyserial-asyncio>=0.6.0 in /home/pi/.local/lib/python3.11/site-packages (from solaredge_modbus) (0.6)
Requirement already satisfied: pyserial in /home/pi/.local/lib/python3.11/site-packages (from pyserial-asyncio>=0.6.0->solaredge_modbus) (3.5)
domoticz derror:
Code: Select all
2025-12-24 17:53:32.159 Error: pv: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/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-12-24 17:53:32.215 Error: pv: Traceback (most recent call last):
2025-12-24 17:53:32.215 Error: pv: File "/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py", line 59, in <module>
2025-12-24 17:53:32.215 Error: pv: from pymodbus.exceptions import ConnectionException
2025-12-24 17:53:32.215 Error: pv: ModuleNotFoundError: No module named 'pymodbus'
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
jannl
Posts: 823 Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:
Post
by jannl » Wednesday 24 December 2025 18:12
BartSr wrote: Wednesday 24 December 2025 16:20
@janni
Tried docker before but to much 'new' things to consider
@ madpatrick
Python and pip are already the newest versions (says bookworm os)
The real problem seems to be the solaredge_modbus lib.
Docker is not that hard. But propably not something for Christmas Eve.
BartSr
Posts: 489 Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:
Post
by BartSr » Wednesday 24 December 2025 18:56
I am having several containers for:
Mqtt
Zigbee2mqtt
Zwave2mqtt
Domoticz
So docker is not the problem but the plugin is causing my problems as you have to put lib's inside the container which is for now also a challenge. Yes, always if you know the 'how to' it seems not difficult all.
Bare install the plugin is even very difficult for me.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Users browsing this forum: No registered users and 1 guest