Page 1 of 1
multiple RPI domoticz
Posted: Thursday 30 March 2023 21:32
by goblin
hello all,
i have two running Domoticz on two RPI.
One only to read the gas and power consumption (meter) and the other for the switches (main) etc.
But i have attached a few switches to the meter RPI domoticz.
How do i get the status of those switches to the main RPI ?
Domoticz remote server is running (port 6144)
Two Domoticz RPI V2023-1
20 Espeasy, Tuya devices
Re: multiple RPI domoticz
Posted: Thursday 30 March 2023 21:46
by waltervl
See the device sharing wiki
https://www.domoticz.com/wiki/Setting_up_Device_sharing
I personally have no experience with this. Did you try it already?
Re: multiple RPI domoticz
Posted: Friday 31 March 2023 19:25
by goblin
Yes, but I can't figure out how it should work.
i have added one switch to the "remote" RPI so this one has a IDX. how do link this switch with IDX to a dummy switch with of course another IDX.
Or does it not work that way.
Re: multiple RPI domoticz
Posted: Friday 31 March 2023 23:49
by waltervl
On the Domoticz server were you want to see the devices of the other server you have to add the remote hardware gateway and enter the IP address of that other server.
Please read the wiki fully.
Re: multiple RPI domoticz
Posted: Saturday 01 April 2023 20:37
by goblin
Thanks,
i did. for the last 6 years and therefor i get the gas and power from 1 RPI to the other.
But that's all i get.
Re: multiple RPI domoticz
Posted: Saturday 01 April 2023 21:38
by goblin
i have been playing around but the only thing i could find is that only everything from tab "utility" is seen at the "main" rpi
Re: multiple RPI domoticz
Posted: Saturday 01 April 2023 22:17
by waltervl
Domoticz cannot share python plugin controlled devices (as indicated on the wiki). Is that the case for those missing devices?
Re: multiple RPI domoticz
Posted: Monday 03 April 2023 20:39
by goblin
that can be the case (see attm).
So if i make a copy by using blockly / dummy then is should work ?? (see IDX53 is a copy of IDX38)
but that's not the case,
also if e.g a tuya plugin does not work ahould i not get the selected switches (user set devices) in the main RPI in the Slave RPI ?
Re: multiple RPI domoticz
Posted: Monday 03 April 2023 20:49
by waltervl
No, the device share function (including updating) is not working for python controlled devices.
But can you not attach the switches from the P1 RPI directly to the main Domoticz RPi? Then you do not need device sharing?
You can also use sernet to send the P1 meter data directly to the main Domoticz server and not use Domoticz in the P1 RPi.