Setting up Device sharing
One of the nice features of Domoticz is the ability to share devices over the (intra-)network.
This page describes how to set this up.
Because of a bug, device sharing only works between hardware platforms using the same endianness. For example if the master Domoticz is a Raspberry Pi which uses "little endian" the Slave instance has to be "little endian" as well and vice versa.
The bug report is here: Github #1182
You have, for example, 3 machines or controllers or RaspberryPis with Domoticz. All software should be at the latest version and all master and slaves must be running the same version.
- Master Domoticz
Our goal is to have all or some of the devices of Slave1 and Slave2 to be available to the Master Domoticz.
Slave1 and Slave2
Specify the shared port (6144 by default) where the Master will connect to.
Specify the admin username/password in the settings too (even if you do not use this when connecting locally). Note that this is NOT used later.
Now, add a User to Slave's Domoticz (Setup | More Options | Edit Users). This is the user/password combination we will use later when we setup the Master.
Here you can specify the devices you want this slave to share (no selected devices for this User means all).
Do this on both slaves.
In menu "Setup | Hardware" - add a new hardware device of type "Domoticz - Remote Server" with properties:
- Remote IP/Port (IP address of Slave1, port 6144)
- Specify the username/password entered above for Slave1
With the row still highlighted, press the "Update" button or you will lose the setup parameters!
Add another new hardware device of type "Domoticz - Remote Server" with properties:
- Remote IP/Port (IP Address of Slave2, port 6144)
- Specify the username/password entered above for Slave2
With the row still highlighted, press the "Update" button.
You should now receive device/sensor data from Slave1 and Slave2 in your Master Domoticz. Give it some time to collect all data.
It would be wise to check the "Setup | Log" to double check there are no errors.
To add specific data to your Master Domoticz, look in menu "Setup | Devices". If you have a lot of devices in your Master Domoticz, type your slave's name in the search box and Domoticz will only display available device data matching that name.