I need to create a standard "relay" device, but one that doesn't generally know what its current state is. I know how to make any "toggle" actions fail. But is there any way I can reject attempts to read such a relay device? I'd hate for users to read the onOffState and then realize that it bears only a sometimes resemblance to the real state...
Failing an ability to block reading of the onOffState, is there any way I can make it tri-state (on, off, unknown)? Yes, I sometimes know what the state is, but not at other times. Weird, huh?
Or am I over-stretching the intended meaning of a "standard" relay device, and I should really use a custom device instead?
Cheers
-- perry
P.S.: If you're dying from curiosity, that's the "trigger" relay outputs at the back of a Denon receiver. They track internal activity of the receiver without telling you what they're doing, until you send them a command, at which point they latch to the set value ignoring the internal state... until the receiver powers down. Then the cycle repeats. Weird.