Multiple arguments in luup call

Hi all,

U just setup imperihome on a tablet and am trying to use the SayTTS stuff to call out info.

The call below works, but defaults to a mid-level volume.
luup.call_action(“urn:imperihome-com:serviceId:ImperiHomeDevice1”, “SayTTS”, {Text = “Test Text To Say”}, 44);

It seems that the parameter Volume is valid as I can pass it as 100 from the “Control” section of the imperihome device, but I can’t figure out how to call that in my script.

I have tailed the log, but it shows it setting parameters individually, and not in luup code.

Any suggestions?

I have tried:
luup.call_action(“urn:imperihome-com:serviceId:ImperiHomeDevice1”, “SayTTS”, {Text = “Test Text To Say”}, {Volume = 100},44);
luup.call_action(“urn:imperihome-com:serviceId:ImperiHomeDevice1”, “SayTTS”, {Text = “Test Text To Say”, Volume = 100},44);

and I’ve quoted the “100” in both calls.

Any ideas?

Thanks!

From a Luup syntax point of view, your second attempt is correct:

luup.call_action("urn:imperihome-com:serviceId:ImperiHomeDevice1", "SayTTS", {Text = "Test Text To Say", Volume = 100},44);

That Luup call is documented here: http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_call_action

From an Imperihome POV, I have no idea what it does with it.