Running LUUP script via post/get http

How would I run a LUUP script (like I can put in the advanced tab) from outside the vera? ie, command the vera to run the LUUP

This is a list of currently available Luup Requests. If you need additional functions, you could put them in a scene and run that.

I looked through and didn’t see anything to Run LUUP script. Creating a scene won’t work for me since the script would be variable based upon the system that is sending the message. For example, based upon certain events on the “sending system,” the LUUP script will contain different values/variables pertaining to the conditions at the time the script is sent. A basic example is sending a push notification, where the text in the notification is dynamically generated by the “sending system” and passed to the Vera to run. With all the functions, I just can’t believe that there is no way to pass a LUUP script. Seems so basic.

I was expecting something like this: http://ip_address:3480/data_request?id=RunLUUP=This%is%my%LUUP%script%here

There is an action call to run Lua code. It is not well documented and I have not personally used it:

http://ip_address:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunLua&Code=<your-Lua-code>

Ok. I have tried several variations and am getting a “ERROR: Invalid service/action/device”
Which I’m sure is my interpretation of what you supplied rather than a problem with the example itself. Here is what I’m sending:

http://192.168.1.100:3480/data_request?id=action&serviceId=urn:upnp-org:serviceId:urn:upnp-org:serviceId:IOSPush1&action=RunLua&Code=luup.call_action(“urn:upnp-org:serviceId:IOSPush1”,“SendProwlNotification”,{ Event= “Test- Just a Test”, Description=“Had this been a real emergency, there would be screaming”, Priority=2, URL=“”}, 104)

I pasted what I used in the advanced tab in the UI that works, but I’m sure it needs tweaking of some sort for this.

You’ve changed some parts of the sample that Rex gave you that are not actually supposed to be modified. In particular, serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1 is not to be replaced with your device’s service ID.

You also very probably need a bucketload of percent-escaping for all of the special characters like space and quote that can’t be included verbatim in a URL.

Still having a bit of trouble… appreciate any help with this.

Here is my exact LUUP: luup.call_action(“urn:upnp-org:serviceId:IOSPush1”, “SendProwlNotification”,{ Event= “Title”, Description=“Test notification”, Priority=2, URL=“”}, 104)