I'd like to be able to power off the sub-panel in my home workshop using a simple key-based switch. I envision a junction box just before the sub-panel with a key that can be turned "on" or "off", and removed.
(The aim is to make sure children don't have access to any of the electrical equipment in my shop.)
Best Answer
Lockout
You could use a "lockout". A lockout is a device used by Electricians, that allows them to lock breakers in the off position. When an Electrician is working on a circuit, they will turn the breaker off, place the lockout on the breaker, place a padlock and a name tag through the lockout lock hole. This prevents others from accidentally energizing the circuit, while the Electrician is working. In most places, the Electrician is the only person with a key to the lock, and the key is kept on them at all times.
Disconnect
An "electrical disconnect" or "safety switch" is a more permanent solution. They are available in fusible and non-fusible varieties, with a wide range of current ratings. They usually have the ability to be locked in the off position, using a common padlock.
You'll wire it up to interrupt the ungrounded conductors of the feeder to the panel.
Now when you move the disconnect into the off position, the panel in the garage should be dead. You can then lock the disconnect door closed, and the handle in the off position.