Surely if you are using Dashboard to provide a friendly interface, all you need is to send the switch output to a flow that sends an on value direct AND sends a matching off command via a delay node at the same time?
See the flow I've just posted regarding a simple button to turn off a light after a 5 minute delay for how to do the delay flow.