First post from me, so please excuse me if my wish are totally crazy

Is it possible to create a "device://" protocol for use instead of "http//" or "script://". Then, I think, is it possible to make a "Switch Selector" with two states (on and off) for use with devices that has different devices for ON action and OFF action.