Page 1 of 1

Can one Domoticz server control switch in other Domoticz server

Posted: Friday 04 May 2018 22:02
by Jumper3126
I have 2 raspberry's running Domoticz: A and B. A is my main server with a lot of sensors, whereas B's only function is to open or close a window (actuator). In B I can open en close the window with a switch. I would like A to be able to control the window as well (for example when the temp is too high). How can I do this?

I have made A a master and B a slave, but this only results in of sensors of B going to A, I dont think that the switch in B is accesible for A this way.

Hope this is a clear explanation.... and that someone knows a solution.

Re: Can one Domoticz server control switch in other Domoticz server

Posted: Friday 04 May 2018 22:38
by Jumper3126
Ok, sorry for asking question that I partly solved myself 15 min later.
JSON should do this for me. Still getting an error, but I think I'm on the right track.

Code: Select all

http://login:[email protected]:8080/json.htm?type=command¶m=switchlight&idx=76&switchcmd=On

Re: Can one Domoticz server control switch in other Domoticz server

Posted: Friday 04 May 2018 23:40
by mark.sellwood
This should work without using JSON.

Use B to open or close the window.
On A look in Devices Not used and you should see the switch on B listed.

I'm doing this with no issue, I have 3 raspberries, 1 Master & 2 Slaves. One Slave has my RfxCOM transceiver on it, the second Slave has my Z-Wave devices.
Both Slaves report to the Master where I run scripts to do things. For example a Humidity sensor reports via Slave 1 the bathroom humidity, this value is also seen on the Master, based on the humidity change over time the Master turns on the extractor via a Z-Wave relay on Slave 2.