A ThreeStateSwitchCommandViewer is a 3 states viewer associated with
2 commands (one to switch on the device , one to switch it off) and one
scalar attribute which represents the boolean state 0=OFF 1=ON (other=unknown)
The viewer can also display an undefined state (when different from ON or OFF)