Renaming a device in a plugin

I want to rename devices.

The URL to do this is:
http://10.1.1.10:3480/data_request?id=device&action=rename&device=16&name=xxx

I’m trying:
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_call_action

local lul_arguments = {}
lul_arguments[“rename”] = “xxx”
lul_resultcode, lul_resultstring, lul_job, lul_returnarguments = luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “rename”, lul_arguments, 16)

But receive error:
02 02/08/13 21:13:51.082 Device_LuaUPnP::HandleActionRequest 16 none of the 1 implementations handled it <0x2bc8f680>

Is there a way to do what I’m trying to accomplish without resorting to calling Vera’s URL?

Thanks, Chris.

This writes the name to the log using:

U15–>Develop Apps–> Test Luup code (Lua) →

[code]local theName = luup.attr_get (‘name’, 16)
luup.log(theName)

return true[/code]

How about using the reverse with luup.attr_set or am I misunderstanding what you are trying to achieve ?

Thank You - Thank You!

I was unaware of attr_get/set; I tried variable_set - not realizing the attr variant. Hence, my trying to boil the ocean with a more complex solution!