json switchcmd='On' for 1 sec.
Posted: Sunday 13 March 2022 14:01
Hello,
I have a wireless doorbell whose push button range (433 MHz.) is not big enough.
With this push button I have made a doorbell device in Domoticz so that the range with the RFLink is large enough.
With a dzVents Script I can now control the bubbles (3), but the 'On' signal should not be longer than one second.
The current script rings the bell constantly.
return {
on = {
devices = { 525 }
},
execute = function(dz, device)
if (device.active) then
dz.openURL('http:/192.168.1.23:8080/json.htm?type=command¶m=switchlight&idx=507&switchcmd=On')
end
end
}
I have a wireless doorbell whose push button range (433 MHz.) is not big enough.
With this push button I have made a doorbell device in Domoticz so that the range with the RFLink is large enough.
With a dzVents Script I can now control the bubbles (3), but the 'On' signal should not be longer than one second.
The current script rings the bell constantly.
return {
on = {
devices = { 525 }
},
execute = function(dz, device)
if (device.active) then
dz.openURL('http:/192.168.1.23:8080/json.htm?type=command¶m=switchlight&idx=507&switchcmd=On')
end
end
}