I’m using a trigger node as a timer for my basement lights so that they automatically shut off after X minutes. I have three inputs which trigger the lights to turn on (two light switches and a motion detector). If any of the inputs fires, the trigger timer resets - this effectively allows occupancy detection because the motion detector will keep reseting the X minute timer as long as it detects something.
Now I want to make it possible to disable the trigger by double tapping one of the light switches on.
In order to do so, first I need to detect a double tap of the switch (the switches are sending MQTT messages into node-red).
Then I have to be able to disable the trigger which has already begun counting down from the first on command.
Is this doable with the builtin nodes? Or do I need to write my own function?