Domoticz on two Linux servers

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
janegils
Posts: 7
Joined: Thursday 03 October 2013 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz on two Linux servers

Post by janegils »

Because of range issues I have decided to install a second Z-Wave stick on a Linux laptop also running a Domoticz server.
That way I will have a main Linux server running Domotiz with a Z-Wave stick controlling most of the devices.
And an extra server (laptop) running a Z-Wave stick controlling a single Z-Wave device.

Is there an easy way to 'connect' these two Domoticz servers so that I can run all logic from the main server?
I know I can do it with bash scripts etc., but if there's an easier option....

And no, Z-Wave repeaters is not an option.


* EDIT
After some more reading in the Wiki, I can see that there is something called 'Device sharing'.
I'm going to try that in the weekend :)
Running Domoticz on Ubuntu Linux server
RFXCOM_Transceiver
Aeon Labs Z-Stick S2
D'rMorris
Posts: 138
Joined: Thursday 01 May 2014 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands - Sittard
Contact:

Re: Domoticz on two Linux servers

Post by D'rMorris »

Add a remote Domoticz server under setup --> hardware --> type: Domoticz remote server :).
janegils
Posts: 7
Joined: Thursday 03 October 2013 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz on two Linux servers

Post by janegils »

No success so far.
I get these messages in the logs:

Master:
2015-03-01 10:49:32.486 Domoticz: TCP connected to: 10.0.0.45:6144
2015-03-01 10:49:32.491 Error: Domoticz: TCP/IP connection closed! 10.0.0.45
2015-03-01 10:49:32.491 Domoticz: retrying in 30 seconds...


Slave:
2015-03-01 10:49:30.615 Incoming Domoticz connection from: 10.0.0.44
And then nothing more in the log before the same message repeats 30 seconds later.

Any ideas?
Running Domoticz on Ubuntu Linux server
RFXCOM_Transceiver
Aeon Labs Z-Stick S2
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Domoticz on two Linux servers

Post by ThinkPad »

Firewall?
I am not active on this forum anymore.
janegils
Posts: 7
Joined: Thursday 03 October 2013 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz on two Linux servers

Post by janegils »

It's working well now.

I deleted and then added the user again (on the slave), and added the wanted device for that user.
Not sure what was the error, but now it's all good :)
Running Domoticz on Ubuntu Linux server
RFXCOM_Transceiver
Aeon Labs Z-Stick S2
ravingbonkers
Posts: 3
Joined: Monday 25 July 2016 19:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz on two Linux servers

Post by ravingbonkers »

Hi There

I have the same issue with a need for multiple servers to cover an old house with very think walls. could you help with these questions?

-Did the system work with adding additional domoticz servers?
-can you control and receive information from the devices on the remote server?
-can you add the remote devices into the logic the same as local ones?
-Do you know if several remote servers can be added?

I appreciate any help here as the topic is very poorly documented.

I will be using RFXcom trancievers on the remote servers.

Many thanks.
trixwood

Re: Domoticz on two Linux servers

Post by trixwood »

Yes to all...

-Did the system work with adding additional domoticz servers?

Yes

-can you control and receive information from the devices on the remote server?

Yes

-can you add the remote devices into the logic the same as local ones?

Yes

-Do you know if several remote servers can be added?

Yes

I appreciate any help here as the topic is very poorly documented.

I will be using RFXcom trancievers on the remote servers.

Many thanks.

I'm running domoticz on 3 pi zero slaves (with stuff attached) and an osx version as master. Works like a charm.

And your right:

https://www.domoticz.com/wiki/Setting_up_Device_sharing

Contains not that much :-)
Alain
Posts: 164
Joined: Sunday 26 April 2020 5:27
Target OS: Linux
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: Domoticz on two Linux servers

Post by Alain »

Does this also work if you're running both Domoticz instances within a virtual machine? I have a Windows 10 PC with a virtual machine with Ubuntu to run Domoticz on. We have two houses and I want to control devices in the other house through the same Domoticz system. Because RF signals won't reach the other house, I am thinking of putting another PC with Windows over there and also running a VM with Ubuntu on it.

Both houses have the same LAN. I ran a CAT-7 cable underground from one house to the other, so the network is shared.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest