Make it possible to define switch definitions by yaml
Add shorthand to edit switch definitions