Page 1 of 1

Extra Raspberry PI GPIO's as device

Posted: Friday 17 March 2017 18:38
by DomoticaRob
Can I use a extra Rasperry Pi (not the Domoticz server) as a device? I want to use a Raspberry Pi with Wifi dongle and a 16 channel relais board connected to the GPIO. I want to control the relais with a Lua script.

Re: Extra Raspberry PI GPIO's as device

Posted: Wednesday 29 March 2017 14:35
by ycahome
Duplicate post: viewtopic.php?f=28&t=16880
you can delete one of the two from edit page

Why you don't build a second domoticz and connect it to your existing as a "remote server"?

Re: Extra Raspberry PI GPIO's as device

Posted: Wednesday 29 March 2017 21:34
by DomoticaRob
Hello ycahome,

Thanks for the tip.

Today I build a second Raspberry Pi with Domoticz and prepared the Slave and the Master with the username and password. In the Slave I made a device for one of the GPIO ports. On the slave I can control that GPIO port.

Unfortunately I don’t see the Slave in the Master. The Wiki says that both systems must have the same software version. My Master is V3.4834 and my Slave is V3.5877. So, in fact I need to update my Master. When I go to Setup>Check for Updates he says ‘no update available’ That is strange.

I must say that every time I want to add or change something to the Domoticz system it is a struggle through the Wiki and the different topics on the Forum. Many times I find the answer somewhere else on the Internet. So, I am going to search for an answer. Maybe you have the solution for me.

Kind regards,

Rob

Re: Extra Raspberry PI GPIO's as device

Posted: Wednesday 29 March 2017 22:53
by ycahome
Here are some tips:
1.make sure that on "settings" you are following the same type of updates. "Beta" or "stable"
2.you can try to update from ssh. Inside domoticz folder there is an update script
3.in order remote devices to be created to the master, "allow new hardware" should be pressed.
4.some dummy devices cannot be replicated in the current "stable" version. Am currently using latest beta for this reason.
5. Devices to-be-replicated should be enabled on the selected user.Note the button far right on the username row.

Let me know if this is helpful to you......

Re: Extra Raspberry PI GPIO's as device

Posted: Monday 10 April 2017 20:20
by DomoticaRob
Hello Ycahome,

After three installations is succeeded. I have no idea what went wrong the first two times. But it works, even with different versions of Domoticz on the master and the slave.

Thanks,

Rob

Re: Extra Raspberry PI GPIO's as device

Posted: Monday 26 December 2022 20:50
by homeJLB
Is this still the preferred way to get different raspberry pi's in Domoticz ?

I believe there is now the pigpio library
on the command line I can run

Code: Select all

PIGPIO_ADDR=10.0.1.28 pigs hwver
for a different raspberry on my network.

Is there a way to integrate this in Domoticz ?

Code: Select all

PIGPIO_ADDR=10.0.1.28 pigs MG 21
PIGPIO_ADDR=10.0.1.28 pigs r 21