Solaregde plugin in docker volume. Works with error
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Solaregde plugin in docker volume. Works with error
I installed domoticz in a Docker container and placed the data in a volume called domoticz_data to prevent data loss during a subsequent pull. The SolarEdge Modbus Python plugin is now installed in the data volume path root@44929adebcd4:/opt/domoticz/userdata/plugins#. However, the plugin occasionally returns an error. It appears the plugin is searching for/using the original location of the plugin path /opt/domoticz/userdata/plugins. How can I modify the plugin to prevent these errors?
thanks
thanks
- Attachments
-
- Screen Shot 2026-01-07 at 09.58.22.653 AM.png (41.48 KiB) Viewed 122 times
-
- Screen Shot 2026-01-07 at 09.57.59.106 AM.png (119.55 KiB) Viewed 122 times
-
- Screen Shot 2026-01-07 at 09.57.20.625 AM.png (35.15 KiB) Viewed 122 times
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
The / is correct as from inside the container it is and should be in /opt/domoticz/userdata/plugins
How does your docker compose yaml file looks like?
How does your docker compose yaml file looks like?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
The plugin gives an occasional error since I use it.
The thing is the Solaredge Modbus TCP seems not to be real actively maintained.
I plan to look into that, but that will take some time before I have ehm time.
What I sometimes see is that shortly after modbus has an issue also the Solaredge API gets the errors, mostly when the sun is not shining or the panels are otherwise not generating electricity.
The thing is the Solaredge Modbus TCP seems not to be real actively maintained.
I plan to look into that, but that will take some time before I have ehm time.
What I sometimes see is that shortly after modbus has an issue also the Solaredge API gets the errors, mostly when the sun is not shining or the panels are otherwise not generating electricity.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
I see also errors in your screenshot from the plugin manager plugin you have implemented? So it is not only the solaredge plugin that gives issues.
Perhaps it is an issue of your docker implementation that it sometimes cannot find the mounted volume? Is that a disk on the same system or a network disk?
Edit: It seems you have 2 issues:
1. Solaredge plugin just have an issue with communicating. Nothing to do with /
2. Plugin Manager (PluginList) plugin not able to locate the solaredge plugin.
Perhaps it is an issue of your docker implementation that it sometimes cannot find the mounted volume? Is that a disk on the same system or a network disk?
Edit: It seems you have 2 issues:
1. Solaredge plugin just have an issue with communicating. Nothing to do with /
2. Plugin Manager (PluginList) plugin not able to locate the solaredge plugin.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
Shouldn't the error in that case not occur always instead of occasionally?
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
I dont know both plugins but please treat your errors as 2 different problems.....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
Because of a lot of defunct processes in my Domoticz docker, I added
to my docker-compose.yml. The line takes care of cleaning defunct proces and starts an initd (as I read) and takes care of a lot of things to let software inside a container.
Besides that I have not seen any errors, which I normally do see. Not sure if this is a good thing and the time is short since it runs, but who knows.
Code: Select all
init: trueBesides that I have not seen any errors, which I normally do see. Not sure if this is a good thing and the time is short since it runs, but who knows.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
I dont know what you all did but this adding of int: true should not be needed. It seems something else is wrong
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
Please learn, it is needed in some cases. For instance when you use os.execute in lua to start processes. Due to docker functionality you may get defunct processes that cause a container to crash eventually. Defunct processes can be checked by logging into a container and issue a ´'ps -ef´. So in my case it is needed.
Unfortunatwly it did not solve the Solaredge error, I had to wait longer
Edit: i a normal Linux environment, init always runs. With init: true , tini is started which is a small init.
Unfortunatwly it did not solve the Solaredge error, I had to wait longer
Edit: i a normal Linux environment, init always runs. With init: true , tini is started which is a small init.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
If those Lua os.execute actions are not treated in async you also could get Domoticz issues as they can hold up the complete event system.
You better switch to dzvents as that is better integrated and has async functions See for example discussion viewtopic.php?t=35932
You better switch to dzvents as that is better integrated and has async functions See for example discussion viewtopic.php?t=35932
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
async is the problem in this case, in combination with docker.
I will never go to dzvents because of different reasons. I started lua before dzvents and solved the multiple lua scripts issue just before dzvents started. Dzvents is propably easier to start with without programming experience.
But that is not the topic here.
I will never go to dzvents because of different reasons. I started lua before dzvents and solved the multiple lua scripts issue just before dzvents started. Dzvents is propably easier to start with without programming experience.
But that is not the topic here.
Re: Solaregde plugin in docker volume. Works with error
Thank you both for joining this discussion. However, the discussion becomes confusing when comments are somewhat cryptic, such as "/ is correct..." and "Edit: In a normal Linux environment, init always runs. With init: true, tini is started, which is a small init" and "I will never go to dzvents because etc, etc" from Janni.
Sorry, but often more explanation is needed for the relative layman.
Waltervl asks for the docker-compose.yml.
Waltervl noted "pluginmanager (pluginlist) not able to locate solaredge plugin." In my opinion this plugin-manager also looks at the /opt/domoticz/userdata/plugins/SolarEdgeModbus/ directory, which I don't use because my SE plugin is within the container (see first post).
Janni noted that async is the problem here, but at the same time he stated it's not the topic. Isn't that a contradictory comment?
In short, I don't see any clear solution in the answers.
Apparently, adapting the SE plugin to work within a Docker container isn't possible for the time being, although all sensors seems to work fine (except the log-errors ofcourse).
I asked a similar question at GITHUB/addiejansen (the source of all this) under Discussion and didn't get a single response.
Perhaps I should remove all the Domoticz data from the volume and place it in /opt/domoticz/userdata/, the default location. Perhaps that will solve all the problems.
Sorry, but often more explanation is needed for the relative layman.
Waltervl asks for the docker-compose.yml.
Code: Select all
services:
domoticz:
image: domoticz/domoticz:stable
container_name: domoticz
restart: unless-stopped
privileged: true # belangrijk voor USB hotplug
ports:
- "8080:8080"
volumes:
- domoticz_data:/opt/domoticz/userdata
- /dev:/dev # geef toegang tot alle devices
environment:
- TZ=Europe/Amsterdam
volumes:
domoticz_data:
name: domoticz_data
Janni noted that async is the problem here, but at the same time he stated it's not the topic. Isn't that a contradictory comment?
In short, I don't see any clear solution in the answers.
Apparently, adapting the SE plugin to work within a Docker container isn't possible for the time being, although all sensors seems to work fine (except the log-errors ofcourse).
I asked a similar question at GITHUB/addiejansen (the source of all this) under Discussion and didn't get a single response.
Perhaps I should remove all the Domoticz data from the volume and place it in /opt/domoticz/userdata/, the default location. Perhaps that will solve all the problems.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Solaregde plugin in docker volume. Works with error
I think you should have volumes configured like
And the docker compose yaml file should be in the folder where the domoticz_data folder is.
Or make the volume a full path like eg
The pluginlist plugin looks at the plugins IN the container, not outside. And from inside they are in /opt/domoticz/userdata/plugins
Code: Select all
- ./domoticz_data:/opt/domoticz/userdataOr make the volume a full path like eg
Code: Select all
- /home/pi/domoticz_data:/opt/domoticz/userdataDomoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
This is my docker-compose.yml
Don't mind the ssh volume, that is for issueing a command in the docker host.
Code: Select all
services:
domoticz:
#image: domoticz/domoticz:161125
image: domoticz/domoticz:051225
container_name: domoticz
init: true
restart: unless-stopped
# Pass devices to container
devices:
- /dev/ttyUSB-RFXcom:/dev/ttyUSB-RFXcom
ports:
- "8080:8080"
# - "443:443"
volumes:
- ./config:/opt/domoticz/userdata
- ./config/.ssh:/root/.ssh
environment:
- TZ=Europe/Amsterdam
#- LOG_PATH=/opt/domoticz/userdata/domoticz.log
logging:
driver: syslog
options:
syslog-address: udp://x.x.x.x:514
syslog-format: rfc5424
tag: domoticz
Re: Solaregde plugin in docker volume. Works with error
Thanks for sharing your docker-compose.
I have not seen before the. Volume xxx .ssh and the logging lines.
Could you explain the function of these lines and how to use them in, I assume, in the browser?
Thx
I have not seen before the. Volume xxx .ssh and the logging lines.
Could you explain the function of these lines and how to use them in, I assume, in the browser?
Thx
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Solaregde plugin in docker volume. Works with error
The .ssh is to be able to execute a shell command from within the container in the host. I use it to have domoticz send a wake on lan packet to my mini pc. Configurated innsuchba way it is the only thing the container can do via dsh. This to make sure any security issue with domoticz can not easily compromise the pi.
The log lineS are to send the container logging to a central syslog server. In this case my NAS.
The log lineS are to send the container logging to a central syslog server. In this case my NAS.
Who is online
Users browsing this forum: No registered users and 1 guest