@Baassievalk
After much googling, the answer is here:
and in particular this comment
username ALL = NOPASSWD: /fullpath/to/command, /fullpath/to/othercommand
In my setup I created a file called /etc/sudoers.d/010_cmdswitch2
And the file contains
homebrid ALL = NOPASSWD: /bin/chvt
chvt is the command I need to run, and homebrid is the account I use to run my homebridge with