When I need to do this, and it’s rare, I look at the [tt]D_xxxxx.xml[/tt] file for whatever device I’m looking to control, and I “grab” the ServiceId that’s listed there, along with the corresponding Service File ([tt]S_yyyyy.xml[/tt]) that’s declared alongside that same ServiceId.
The Action, and it’s parameters, are fully described in whatever service file you look at, and all names used are case-sensitive.
Again, probably a better way to do it, but that’s what I do… It’s just a bunch of pre-reading and you’ll work it out from there.
[quote=“mysticjay, post:5, topic:169148”]Hello again guessed:
The link you posted is totally helpful. I was missing one piece of info and hoping you’d be able to help me again…
It appears these functions are also wrapped for a HTTP layer…For instance I just learned the following,
With help of the following posts:
http://forum.micasaverde.com/index.php?topic=7364.0
Status of a dimmer:
http://myhome:3480/data_request?id=lu_variableget&serviceId=urn:upnp-org:serviceId:Dimming1&Variable=LoadLevelStatus&DeviceNum=8
Set a value for a dimmer:
http://myhome:3480/data_request?id=lu_action&DeviceNum=8&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=50
So is there another wiki page that details these? your input is appreciated.
For example I wouldnt know SetLoadLevelTarget is what is used for a Dimmer, because to do the same thing with a switch the action should be SetTarget and so on…
So, am i missing something…
in the Luup extensions we have the following function
function: variable_set
Through HTTP we have id=lu_action
so I’m almost thinking there must be a HTTP layer/SOA layer that exposes all the functions…[/quote]