Page 1 of 1

Switch gpio output on slave

Posted: Wednesday 17 June 2020 18:39
by barts2108
I am wondering if it is possible to do the following.

Currently I have a pi 4 setup with Domoticz (beta channel) and it is working quite well so far. I have done some small lua scripts for the smart meter to send me the meter T1, T2 and gas values every sunday at 19:00:00 through telegram. All works fine.

Now I want to add the doorbell to an GPIO input (not sure yet how but assume here it will be a high pulse when the doorbell is pressed.

I want to make a slave Domoticz system in my bedroom where a an output will be switched on for a lamp.

When the doorbell is pressed, say a pulse of 1 or 2 seconds should trigger a script in the slave device. That script then should flash some light for 10 times or so, or until a button is pressed (connected to input of the slave).

Is such construction possible? I am most interested to know if a script can be triggered in a slave device. The scripting how to flash the light etc I can find out myself.