Can one Domoticz server control switch in other Domoticz server

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Can one Domoticz server control switch in other Domoticz server

Post 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.
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
mark.sellwood
Posts: 107
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

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

Post 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.
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest