I think your circuit looks like it would work.
However, for the input low pass filter, R2 doesn't do anything but divide the voltage of the incoming signal. And, you don't need the power supply to create the 12 volts at the switch. You could put the 36 volts directly to the switch. You would have to work out new resister values though.
Finally if your controller or BOB has a input pullup resistor, you don't need the +5V supply.