Implementing "Get" calls.

Has anyone implemented a “Get” call in their plugin?

As an example, looking at the S_Dimmer1.xml file on the Vera, there is a “GetLoadLevelTarget” command, that seems it would return the current dim level of the device. If I am implementing a dimmer device, and want to support that command, what would the LUA look like to do that?

I am assuming that it would be implemented in the xml as an and that inside the clause, you would return a value, or assign a value to something. But, it is unclear what you return or assign.

Thanks!

I couldn’t make it work. Nothing I returned ever appeared in the HTTP response. In the end I used the Luup Request callback mechanism instead. Not UPnP conforming, I’m afraid.