I’ve been working on some Monitoring and Management for my Garage, and wrote a plugin to handle Relay-based IO Boards from IORelay.com (National Control Devices)
It’s now working for manual control/monitoring, so I’m publishing what I have so far:
[url=http://code.mios.com/trac/mios_iorelay]http://code.mios.com/trac/mios_iorelay[/url]
So far, it handles the ProXR, ProXR Lite and Reactor Relay boards from NCD. Specifically models that support 1-8 Relays, and 8 Analog Inputs. These boards each have Flexable Serial Interfaces, offering direct-USB, ZigBee ZB, 802.15.4, Ethernet and basically anything “Serial” that uses the Xbee-style pinout.
The Plugin will
[ul][li]expose each configured Relay as a Light Switch, with regular On / Off controls[/li]
[li]expose each configured Analog Input as a Light Sensor, with values from 0-100%[/li]
[li]poll the Inputs on a configurable frequency (seconds) for changes in value[/li]
[li]poll the Relays, for any changes in status that occur “outside” of Vera (such as the Reactor Relays which run autonomously)[/li]
[li]throw out “lost” messages when they’re not acknowledged within a reasonable timeframe[/li]
[li]allow manual (permanent, temporary or lockout) override for Reactor Relays, which are normally controlled by the Processor on the Reactor Relay.[/li][/ul]
I haven’t tested it against Scenes yet, but it should work fine using standard [tt]LightSensor1[/tt] and [tt]BinarySwitch1[/tt] based scenes (for control and events)
In my configuration, I’ve been testing with the following boards:
[ul][li]2 Relay, 8 Analog input ProXR Lite
This is for my Garage, and is using a Roving Networks RN-XV for Wifi-based control.
It has inputs representing Light Level, Temperature and a few Reed Switches, the outputs will be used for Control.[/li]
[li]2 Relay, 8 Analog input Reactor Relay
This is to eventually auto-restart Vera if it doesn’t heartbeat, and uses a USB adapter for control (it hangs just below Vera).
One Relay will Control power to Vera, and will eventually cut-it-off if it doesn’t receive a [MiOS Scene-based] Heatbeat within 10-15 minutes. This will be more fully implemented once I do the Garage stuff.[.li][/ul]