The Porsche 914 (912/911 too) had a keyed locking Frunk cable mechanism that probably could be adapted. $95 on ebay used.
An easier way would be to adapt an electric solenoid from a door lock kit. There are after-market kits available.
Or, I guess, unscrew the knob?