

Moderator: leecollings
That last part might work with a virtual switch:Egregius wrote:If the button is connected as extra input of a Qubino Dimmer, or a Fibaro binary sensor, or... It would stay on as long as the button is pressed.
But then, how to detect that the button is pressed for 2 seconds? Events are triggered upon start of something. Then you should retrieve the history of the switch after 7 seconds to determine if it was continuesly pushed.
Must be possible, but not easy to do.
Also, you want your gate opened like this?
Nice idea, although I believe that in the ['Virtual switch '] = "On FOR x" statement in Lua, x is measured in minutes. But I also remember that in ['Virtual switch '] = "Off AFTER x", the x is measured in seconds. So you could build it up from an "On" plus an "Off AFTER 7" command.booster wrote: That last part might work with a virtual switch:
if doorbell is pressed, switch on virtual switch on for 7 seconds
when virtual switch switches off, and doorbell is on, open your gate.
if doorbell is off, switch virtual switch off
Users browsing this forum: No registered users and 1 guest