Some Please point me to LUUP reference docs including supported functions?

  1. For instance I was going through this article:
    http://wiki.micasaverde.com/index.php/Luup_Somfy_Walkthrough

  2. Then I find something like this:

luup.chdev.start() takes as a parameter our device id (ie the parent device) and it tells the Luup engine we’re going to start listing all our children

Which is good,
except - where is the complete API guide for all the luup.XXXX???

  1. I also came across, is_night() function in another post - So instead of hunting through these forums, It would be very helpful, to find the list of all supported functions.

Thanks for your help.

P.S: I’m a new user, so If I missed the proper link to find these API/functions excuse me and please point me in the right direction. Thanks.

This is the full list…
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions

@guessed: You’re awesome.

Do I need an account to look at all the pages?..

Was there a problem when you tried the link I provided?

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…

@guessed: No probs with the link. I was wondering, if there is a page that links to all the other pages or If I need to create an account to see the ALL the wiki pages - Not sure how this works. Thanks.

This takes you to the main wiki page. There is a link at the bottom that will show all pages.

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]

@guessed and @oTi: Thank you - I totally appreciate it. :slight_smile:

Here you can find all the standard UPnP service IDs, variables and actions:
[url=http://wiki.micasaverde.com/index.php/Luup_UPNP_Files]http://wiki.micasaverde.com/index.php/Luup_UPNP_Files[/url]

To see the parameters you’ll have to look in the service description files.

And here is the HTTP request list:
[url=http://wiki.micasaverde.com/index.php/Luup_Requests]http://wiki.micasaverde.com/index.php/Luup_Requests[/url]

And here are the formal specifications:
[tt]http://upnp.org/resources/upnpresources.zip[/tt]