Page 1 of 1

Moving Domoticz installation to NAS, keeping existing as slave

Posted: Wednesday 31 August 2022 16:01
by MikeyMan
Not the best title, i'm sure.

But here's the situation; I'm slowly moving all my Raspberry processes to my NAS.
Now i know it's not too hard to move the whole install to another machine, but there's a catch here.
The raspberry now functions as a P1 energy meter. I have to keep this in place, as leaving the Pi there is the only way to read the values.

Now i was thinkin to keep my pi as a slave, an just keep it for P1 measuring and Z-Wave.
In itself that is not too much of an issue. Although all sensors show up as unknown, which is annoying to say the least, i am getting values.

But how can i make sure that these values continue the historic data i already have now since 2018?
When i use the slave sensors, it pops up as a new reading, and is not continuing my current data

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Wednesday 31 August 2022 16:57
by waltervl
Perhaps better move the Domoticz setup to your Nas and use your old Pi to send the P1 data to Domoticz through Ser2Net. No more Domoticz on your Pi, only Ser2Net. See wiki
https://www.domoticz.com/wiki/SharingSerialDevices and https://www.domoticz.com/wiki/Dutch_DSM ... o_Domoticz

You will have to setup a new Hardware gateway P1 LAN in Domoticz which will create new P1 devices in Domoticz. But with the replace function in device - Edit you can replace the old devices with the new and keeping the history. see https://www.domoticz.com/wiki/Managing_ ... ace_device

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Thursday 01 September 2022 7:25
by MikeyMan
waltervl wrote: Wednesday 31 August 2022 16:57 Perhaps better move the Domoticz setup to your Nas and use your old Pi to send the P1 data to Domoticz through Ser2Net. No more Domoticz on your Pi, only Ser2Net. See wiki
https://www.domoticz.com/wiki/SharingSerialDevices and https://www.domoticz.com/wiki/Dutch_DSM ... o_Domoticz

You will have to setup a new Hardware gateway P1 LAN in Domoticz which will create new P1 devices in Domoticz. But with the replace function in device - Edit you can replace the old devices with the new and keeping the history. see https://www.domoticz.com/wiki/Managing_ ... ace_device
That is also an option. Indeed found the replace functionality.

Ran into some other issues though.
Usb stick support is not available in DSM anymore, so z-wave will have to remain on the pi.

But also: I'm only getting 68 out of the 400 devices through the master/slave functionality.

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Thursday 01 September 2022 8:51
by azonneveld
Maybe you can move to Homewizard P1 meter.
Sell the Raspberry Pi and perhaps you'll end up gaining some money, since the PI is expensive these days.

This method also allowes you to retain your historic data, by using the original IDX'es for you power readings

viewtopic.php?t=34952

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Thursday 01 September 2022 8:53
by azonneveld
MikeyMan wrote: Thursday 01 September 2022 7:25 But also: I'm only getting 68 out of the 400 devices through the master/slave functionality.
The M/S functionality is limited, I ran into that same problem.
Some remote devices gave corrupt data, limiting the amount of remote devices solved that.
My guess is that the slave device tries to send all the data in one http query, which is limited to approx 1500 chars.

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Thursday 01 September 2022 13:07
by waltervl
azonneveld wrote: Thursday 01 September 2022 8:53
MikeyMan wrote: Thursday 01 September 2022 7:25 But also: I'm only getting 68 out of the 400 devices through the master/slave functionality.
The M/S functionality is limited, I ran into that same problem.
Some remote devices gave corrupt data, limiting the amount of remote devices solved that.
My guess is that the slave device tries to send all the data in one http query, which is limited to approx 1500 chars.
Python plugin controlled devices cannot be shared. It is a known issue.

Better have Domoticz stay on a RPi (or similar SBC) instead of using a NAS.

Re: Moving Domoticz installation to NAS, keeping existing as slave

Posted: Friday 02 September 2022 11:49
by MikeyMan
The conclusion for now is that master/slave is indeed too limited. It is something that is on the list to be picked up still, and i have no rush whatsoever of course.