Virtual switch turn on smartapp?

I use the virtual thermostat smart app in the evening. is there a way to turn on the smart app with a virtual switch?

The SmartApp needs to support that feature, i.e. it must be designed to react to a switch to turn itself on/off.