Page 1 of 1

Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 21:30
by bnwgraaf
I run Domoticz on a rapsberry pi, to monitor my energy and gas usage.
Unfortunately, the raspberry is sensitive for interuptions in power and so on, so I had to re-install it several times and am missing several measurements from those days.

I have read that it is possible to install Domoticz on a Synology nas.
But is it somehow possible than to read the values of the energy meter?
I am now using the usb port (P1 Smart Meter USB)

Re: Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 21:58
by waaren
bnwgraaf wrote: Friday 23 October 2020 21:30 I have read that it is possible to install Domoticz on a Synology nas.
But is it somehow possible than to read the values of the energy meter?
Yes that's possible if your Synology NAS does also have a free USB port.

Re: Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 22:06
by bnwgraaf
waaren wrote: Friday 23 October 2020 21:58
bnwgraaf wrote: Friday 23 October 2020 21:30 I have read that it is possible to install Domoticz on a Synology nas.
But is it somehow possible than to read the values of the energy meter?
Yes that's possible if your Synology NAS does also have a free USB port.
Thank you for your quick reply!
That would be great!
I have two USB ports, one is sort of free.
Is it very different from setting up as on a raspberry pi? Do you know if there is some tutorial for this? I have now made a word document how I can set this up on a rapsberry, but do not know at the moment, which steps are the same and which are different.
Are there people who have done this already?

A big advantage is that there will be made a backup automatically on the Synology!
Now I do make a backup from the Raspberry with a script...

Re: Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 22:20
by waaren
bnwgraaf wrote: Friday 23 October 2020 22:06 Is it very different from setting up as on a raspberry pi? Do you know if there is some tutorial for this?
Check this wiki page
Are there people who have done this already?
Yes. Up till now we have 5717 hits on this forum if you search for the word Synology (that is without this post) :D

Re: Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 22:22
by twoenter
Yes it is possible.

Install the synology package from jadahl and plug in the usb p1 cable in the synology. How to set up the p1 meter in domoticz, you can read all about it at my blog!

https://www.twoenter.nl/blog/domotica/s ... -domoticz/

If you don't understand Dutch, you can use Google translate to translate it to your language.

Re: Domoticz on Synology and smart energy meter

Posted: Friday 23 October 2020 22:26
by bnwgraaf
Thank you both; I should have used the help a bit more, sorry for that!
twoenter wrote: Friday 23 October 2020 22:22 If you don't understand Dutch, you can use Google translate to translate it to your language.
Dutch language won't be a problem, because I am Dutch myself! :D
I will read your blog!

Re: Domoticz on Synology and smart energy meter

Posted: Saturday 24 October 2020 21:27
by bnwgraaf
twoenter wrote: Friday 23 October 2020 22:22 Install the synology package from jadahl and plug in the usb p1 cable in the synology. How to set up the p1 meter in domoticz, you can read all about it at my blog!

https://www.twoenter.nl/blog/domotica/s ... -domoticz/
I did manage to get it working, thanks to your blog! Thank you!

I first installed the latest stable Domoticz-for-Synology package from the link in your blog. I was able to connect to the Domoticz dashboard, but this one keeps saying that there was an update, and this message keeped popping up after updating.
Than I have installed the latest version 2020.2 (was beta, but now the beta state has been removed?) And now the problem was gone.

After that I have connected my self-made P1 cable which I did use with the Domoticz on my Raspberry, but I needed to re-arrange the pinout and I did need an additional usb to TTL adapter.

After that I restored the Domoticz backup from the Raspberry and now it is working and I have my complete history (from several years now).

In the meantime I did get a disc-not-healthy warning from my Synology, but that one suddenly disappeared, so hopefully that was false alarm....

Now I am wondering how to get the Domoticz database added to the hyper backup? I do not see any of the Domoticz files or the Domoticz database file....

@twoenter : do you know how the Domoticz database on the Synology can be added to the backup?

Re: Domoticz on Synology and smart energy meter

Posted: Sunday 25 October 2020 11:08
by bnwgraaf
I did find the solution and added a task with next command:

cp -avr /volume1/@appstore/domoticz/var/backups/ /volume1/Bestanden/Komputer_en_mobiel/Domoticz/Backup

Now every day a backup will be made from the complete Domoticz Backup folder (check the automated backup option in Domoticz settings)


I now only have still one problem: within Google Chrome (Windows 10 and Android) I can not open the meter logpage for some reason. It does work in Microsoft Edge....

Re: Domoticz on Synology and smart energy meter

Posted: Sunday 25 October 2020 12:59
by twoenter
Good job!

I think you have to clear your appcache for domoticz in chrome