I'm working on my custom Indigo plug-in to toggle a 12V relay hooked up to an Arduino via ethernet. A simple HTTP GET with parameters passed will set the relay, which will turn on or off the siren.
I'd like to use the "Sensor Controls" for my "Siren" device, but the options to turn off/turn on are greyed out.
I suspect the way to specify an action to perform the Turn Off/Turn On and Send Status Request operations are in the Devices.xml file, but I am unaware of how to extend it to "do something." Is there an example someone could point me to which demonstrates how to go from a read-only device to a read-write device?