Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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
Quality outlives Quantity!
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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
smaus
Posts: 84
Joined: Sunday 18 February 2018 9:32
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by smaus »

Same problem here
smaus
Posts: 84
Joined: Sunday 18 February 2018 9:32
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by vespino »

t2pierre
Posts: 1
Joined: Sunday 27 June 2021 19:03
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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
pyxis
Posts: 4
Joined: Sunday 11 July 2021 7:31
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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!
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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
Last edited by jumbotroll on Thursday 05 August 2021 10:28, edited 2 times in total.
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
pyxis
Posts: 4
Joined: Sunday 11 July 2021 7:31
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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!
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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!
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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.
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
famous
Posts: 4
Joined: Tuesday 08 December 2020 20:00
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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 :D
famous
Posts: 4
Joined: Tuesday 08 December 2020 20:00
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
Henk31
Posts: 2
Joined: Monday 09 August 2021 15:46
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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.
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest