Setting up a trigger to turn it off works to some degree but it will delay randomly and for the amount of time it takes to turn off it could be 2 to 10 seconds which doens’t work very well.
Some people might want a switch that activates for a small window of time, maybe to open a garage door half way or soemthing that tight timimg is crutial. For myself I have a arduino program that i need a short button press for and cayenne just doesn’t cut it.
Couldn’t figure it so I ended up making a little bit of code on a Arduino nano to do it for me, here it is for anyne needing something, code is a little basic but it does the trick.