Writing DCE Devices (XBMC & Vera)

Hello-

I’m working on a development project to integrate Vera into a media center. I’m using XBMC as the media center and I’d like to create a new DCE device based on XBMC to fire events when XBMC is playing, stopped, or paused. I’d like to keep all of the code on Vera and not need to run another system. So I think I need a way to register XBMC with the DCE Router, Create a new DCE Device, poll XBMC for its status (available via an HTTP API) and then an appropriate status comes up, fire an event. Then I’ll use the fired event to pause a movie. This is my first time jumping into Vera’s development or the LinuxMCE mentality.

Am I on the right track here?

Are the steps I laid out above reasonable? Is this something that would be better accomplished with LUA. My gut says no, that LUA is a scripting language and I’m looking to do something different, but I’d like to make sure I’m on the right track.

Any nudges in the right direction on creating the device? Polling?

Will the code I write be useful to others. Is there a way for end users to easily install new devices?

Thanks for your help!
-Nick

I’ve been working with the guide on the Linux MCE wiki: Make a DCE Device in 5 minutes - LinuxMCE

It sounds as though to create a DCE device I need an installation of LinuxMCE. Is that true?

I spoke with Aaron on the Micasa team who replied:

In a couple weeks we’ll release LuaUPNP which supports the gc100 and all the extensions you described. It will do everything you’ve asked about: http://wiki.micasaverde.com/index.php/LuaUPnP

Sounds like I need to start learning Lua!

How are you coming along. I plan on developing my own media center extenion for windows so I can use my XBOX or any other media center extender to control my Vera.