Cobra
(Andy - United Kingdom)
2
If you want to control this with a presence sensor then this app will do it:
Just select Door control for the actions and you can select how many seconds you need the switch/plug/whatever held on for.
If you just want to control it with a virtual switch then it shouldn’t be hard to create a smartapp to do this