First, do you already use or do you need nodered ?
In my case I need nodered because it is a simple way to control a google home, but if you don't have a specific case, you don't have to install a nodered server.
With nodered:
In the "script" I have curl -k '
http://192.168.1.104:1880/api?VTO=9';
1.104 is the address of my nodered server.
1880 is default port for nodered.
First node if a http GET and in address I put /api
The switch is to check payload.VTO==9
Without nodered/domoticz only:
In domoticz -> setup -> hardware -> set up a dummy switch. Name it as you want (e.g. doorbell).
Put it in your used devices.
Setup an auto "Off delay".
Find the right URL to change its status.
It should be something like this
[scheme]://[username:password@][host][:port]/json.htm?type=command¶m=udevice&idx=[idx]&svalue=On
host is your domoticz internal IP
port is port open for domoticz
idx is identification number of your dummy device (setup -> devices -> column idx)
Or if doesn't work, refer to documentation
https://www.domoticz.com/wiki/Domoticz_ ... L's#Format
could be /json.htm?type=command¶m=switchlight&idx=XXXX&switchcmd=On
Once you have an URL that works, just replace it in the script instead of this one curl -k '
http://192.168.1.104:1880/api?VTO=9'
and your dummy will change when the door button is pressed.
Then with a script in domoticz you can control whtever you want from this, as usual.