Legend, this is exactly what I was looking for.
I should add that with the very last step, there is already a config service 'switch_button' entry, so that needs to be commented out for anyone who didn’t notice it.