Correct Syntax for WOL via Lua

I need to trip one of my WOL machines via lua, but the syntax is eluding me. The param I’m using is defined as Wake(index). Here’s what I’ve tried:

luup.call_action("urn:holczer-com:serviceId:WOL1", "Wake", "4", 210)
luup.call_action("urn:holczer-com:serviceId:WOL1", "Wake(4)",  210)
luup.call_action("urn:holczer-com:serviceId:WOL1", "Wake",  4. 210)

Thanks for the help.

Which “WOL” plugin are you using?

Not the Ping & WOL plugin by the sounds of it.

You are correct…I’m using the Wake-on-Lan plugin for my vera edge (UI7).

I’m not sure about the WOL plugin I don’t have it installed.

However the Ping & WOL plugin creates a device with an ON / OFF button.


So I would just use LUA code like this, to turn ON that plugin device, thus sending the WOL magic packet to the target PC device etc.

Where “38” is the device number of the Ping & WOL plugin device.

luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“1” },38)