Page 3 of 7
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Friday 18 June 2021 22:47
by Platte73
I managed to install domoticz via the docker container. Only thing not working is that I can't save settings. If I go to settings and adjust some things and press save it will come back with problem saving settings and then changes are not saved.
Does anybody knows how to solve this?
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Tuesday 22 June 2021 12:03
by vespino
Same here.
I'm also looking for a way to run PHP scripts that are on my NAS. Is this possible?
Being new at docker: what is there's an update to domoticz, how do I update?
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Friday 25 June 2021 7:38
by gizmocuz
To update a docker you can issue the following command from within the domoticz docker folder
Code: Select all
docker-compose pull && docker-compose up --force-recreate --build -d && docker image prune -f
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Friday 25 June 2021 10:56
by Platte73
Platte73 wrote: ↑Friday 18 June 2021 22:47
I managed to install domoticz via the docker container. Only thing not working is that I can't save settings. If I go to settings and adjust some things and press save it will come back with problem saving settings and then changes are not saved.
Does anybody knows how to solve this?
Still didn't find anything. Hope someone knows how to fix this
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Friday 25 June 2021 23:11
by smaus
Same problem here
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Saturday 26 June 2021 10:01
by smaus
Platte73 wrote: ↑Friday 25 June 2021 10:56
Platte73 wrote: ↑Friday 18 June 2021 22:47
I managed to install domoticz via the docker container. Only thing not working is that I can't save settings. If I go to settings and adjust some things and press save it will come back with problem saving settings and then changes are not saved.
Does anybody knows how to solve this?
Still didn't find anything. Hope someone knows how to fix this
Same problem here
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 27 June 2021 12:49
by vespino
I noticed the current Docker version of Domoticz is actually a beta release (2021.1.13330). Could this be causing the issues with saving settings?
Since I needed PHP and some other things in my Docker container, I create my own image:
Code: Select all
FROM domoticz/domoticz:latest
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install etherwake wget curl php-cli php-xml php-soap -y
When I restart a container, does it automatically upgrade to an available newer version?
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 27 June 2021 12:57
by waltervl
Perhaps because you use :latest in your compose...
Domoticz docker only supports the beta as the developers don't know how to build a docker stable and publish it to the docker hub.
https://github.com/domoticz/domoticz/issues/4810
So if someone knows how please be free to make a proposal.
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 27 June 2021 14:14
by vespino
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 27 June 2021 19:08
by t2pierre
Hello all
I followed up the procedure on first post.
I have a DS918+ and an AEONTEC zwave USB.
domoticz starts well. I have been able to restore my backed up configuration.
now I have this error message in the log: "Aeon Zwave controller: OpenZWave: Driver Failed"
any ideas?
OK I got the point: I was using the docker image from linuxserver/domoticz
with the container from domoticz/domoticz it is working fine...event without Jadahl USB driver 6.2
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 11 July 2021 7:36
by pyxis
Thank you for your great guide! I have Domoticz now running for my smart meter p1.
I have added your guide with this part for the USB drivers:
Login to DSM via SSH and do/check the following:
Confirm that the kernel sees the P1 cable after plugging in/out:
$ sudo dmesg
Confirm that there is no ttyUSB device:
$ ls /dev/ttyU*
Activate drivers:
$ sudo insmod /lib/modules/usbserial.ko
$ sudo insmod /lib/modules/ftdi_sio.ko
Check if new device is present:
$ ls /dev/ttyU*
After starting the container (with admin privileges) the port becomes available in Domoticz. After setting the speed to 115k you can verify reception of data from the meter in DSM with the following command (this stops reception in the container):
$ sudo cat /dev/ttyUSB0
To make the module installation permanent (survive reboots) create the following file and insert the two module lines:
$ sudo vi /usr/local/etc/rc.d/startup.sh
sudo insmod /lib/modules/usbserial.ko
sudo insmod /lib/modules/ftdi_sio.ko
$ chmod 700 /usr/local/etc/rc.d/startup.sh
Instead of running the container with admin privileges you probbly can also attach the ttyUSB device through a docker-compose.yml file as mentioned by others.
The drivers still work under dsm7
I found this guide here:
viewtopic.php?t=35236
Hope this helps for others also!
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 11 July 2021 20:49
by jumbotroll
USB drivers for synology DSM 7. These are just drivers for testing. I do not have a Synology NAS with DSM 7 so unfortunately I do not get to test this myself.
You should have some Linux knowledge to test these divers.
Download the desired driver from my server.
Copy the files to your Synology using winscp or another suitable program. The files must be copied to
/ lib / modules
Here you will also find the other driver files.
Then type:
sudo insmod /lib/moules/cp210x.ko to activate the file.
Download:
http://www.jadahl.com/iperf-arp-scan/DSM_7.0/
Again!
You must have some Linux knowledge to test these files.
I have no opportunity for support, so do not expect too much.
Good luck!
Regards
Jadahl
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Tuesday 20 July 2021 21:52
by pyxis
@jumbotroll Thanks for this!
I had myself learning some terminal commands. But I figured it out and it works! thanks!
I did use your files and uploaded them with ftp to the homes/user folder.
Than in terminal I used the mv command to move the files to /lib/modules/
Than I did your final step
===
You can also download the start-usb-drivers.sh script and copy to folder: /usr/local/etc/rc.d/start-usb-drivers.sh
Then: chmod +x /usr/local/etc/rc.d/start-usb-drivers.sh
The the drivers will be loaded when you reboot your NAS.
===
and when restarting the nas my domiticz in docker works with usb (slimme meter P1)
Thanks again for your help!
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Wednesday 21 July 2021 10:24
by jumbotroll
pyxis wrote: ↑Tuesday 20 July 2021 21:52
@jumbotroll Thanks for this!
I had myself learning some terminal commands. But I figured it out and it works! thanks!
I did use your files and uploaded them with ftp to the homes/user folder.
Than in terminal I used the mv command to move the files to /lib/modules/
Than I did your final step
===
You can also download the start-usb-drivers.sh script and copy to folder: /usr/local/etc/rc.d/start-usb-drivers.sh
Then: chmod +x /usr/local/etc/rc.d/start-usb-drivers.sh
The the drivers will be loaded when you reboot your NAS.
===
and when restarting the nas my domiticz in docker works with usb (slimme meter P1)
Thanks again for your help!
Glad to hear, thanks for reporting.
Enjoy!
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Thursday 05 August 2021 10:13
by Jumper3126
Someone already got domoticz running on dockers in DSM 7.0?
I just noticed in on my NAS that I can update, but the following point in the release notes are holding me back, especially because I have a zgbee2MQTT dongle and RFXCOM connected via USB on my NAS.
USB devices (Wi-Fi dongle, Bluetooth dongle, 3G/4G dongle, USB DAC/speaker, and DTV dongle) are no longer supported. If your Synology NAS is currently connected via a wireless dongle, it will be disconnected after the update.
Also this isn't very helpful:
After the installation of DSM 7.0, you will not be able to downgrade to a previous DSM version.
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Thursday 05 August 2021 22:42
by Platte73
Platte73 wrote: ↑Friday 25 June 2021 10:56
Platte73 wrote: ↑Friday 18 June 2021 22:47
I managed to install domoticz via the docker container. Only thing not working is that I can't save settings. If I go to settings and adjust some things and press save it will come back with problem saving settings and then changes are not saved.
Does anybody knows how to solve this?
Still didn't find anything. Hope someone knows how to fix this
Still searching without succes. Someone solved this issue already?
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Thursday 05 August 2021 22:58
by famous
I just updated my synology (DS218+) this evening to DSM7.
Domoticz didn't work ....like expected, but after backup, remove and install from synology package ...it did install successful and it runs. Before it did never and choose manual install.
After restore my database there were some missing files and directories which i solved with copy those folders from
https://github.com/domoticz/domoticz/re ... tag/2020.2
After that it runs without errors, only the P1 meter is still a problem.
I followed what earlier was mentioned about the insmod of those 2 modules. Now i see the USB in Domoticz but still don't work.
When i 'cat' the usb-device i see it is communicating (i see data) so, there must be something missing on synology side.
I'm not sure about giving admin rights to Domoticz. I did it from services and then applications. I choose group and admins giving rights ...
Still the P1 meter doesn't work ... i guess i make some mistake on that giving admin rights to domoticz.
Anyone who knows?
Further my house is working again with domoticz on DSM7.0

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Thursday 05 August 2021 23:01
by famous
Platte73 wrote: ↑Thursday 05 August 2021 22:42
Platte73 wrote: ↑Friday 25 June 2021 10:56
Platte73 wrote: ↑Friday 18 June 2021 22:47
I managed to install domoticz via the docker container. Only thing not working is that I can't save settings. If I go to settings and adjust some things and press save it will come back with problem saving settings and then changes are not saved.
Does anybody knows how to solve this?
Still didn't find anything. Hope someone knows how to fix this
Still searching without succes. Someone solved this issue already?
That looks like you try to save into your running container?
Do you made a /config mountpoint or something pointing to a local location?
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Monday 09 August 2021 15:53
by Henk31
Following this guide I've managed to switch form the Jadahl package to the domoticz-docker. Domoticz is up and running but the P1 meter doesn't show the gasmeter. In the logs I've found the following error: P1 Slimme Meter: Gas meter clock is -1628516650 seconds ahead - wait for my clock to catch up. How can I solve this problem? Time and timezone in my Synology and docker are correct.
Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 15 August 2021 20:08
by Platte73
That looks like you try to save into your running container?
Do you made a /config mountpoint or something pointing to a local location?
Can you tell me how to create such a point?