Adding functionality to existing devices

I have been digging around the wiki, and reading message boards to try to understand if this is even possible. I am not getting a clear answer, so I figured I would ask here.

I want to extend an existing device to support additional features. I figured I would start easy, and try to extend the On/Off switch to support controlling of the LED on Insteon switches.

I followed the Somfy example on the wiki, but every time I try to change one of my existing on/off switches to be my test xml files, the Vera changes it back to a basic on/off switch. Attempting to manually add the device results in the same problem.

Has anyone done anything like this? Is it even possible? Any pointers to help me get started?

Thanks!

More information as I have tried to work through this…

First, I am using a Vera 3. Don’t know if that makes a difference or not. (As my tag over there says, I am a newbie.)

If I manually create a device, give it some random ID that looks like an Insteon address, and DO NOT set the parent to the Insteon Network, the device is created. In the LuaUPnP.log, I can see my log line for the startup show up. So, it would seem that much is working.

The manually created device seems to hang around until I change the parent to the Insteon Network. When I make that change, I see a lot of activity in the logs, and after a minute or two the device disappears. When I recreate the device manually, it ends up with the same ID. So either something gets left behind, or it is getting deleted and reassigned the same ID when I create it again.

I am guessing that there needs to be some kind of reference to insteon, or it dies? Is “insteon” a valid protocol type?

I have attached the xml files I am using. Perhaps someone can see an obvious mistake?