Is it possible to call a PLEG action from luup code?

Is it possible to call a PLEG action from luup code?

Yep … you can use luup.call_action

DeviceID: Device ID of the PLEG device that has the action you want to run.
ServiceID: urn:rts-services-com:serviceId:ProgramLogicC
Action: RunAction
Argument: conditionName

Awesome… thanks!

Searched for a bit today and couldn’t find this…

There are ALL kinds of “Features” that devices on you Vera support that are not advertised as “Features” on a UI.

You find these by looking the at the “ACTIONS” a device supports. You find these from:

  1. The Vera Scene Editor “Advanced Editor”
    Select a device … and inspect the Actions it supports.
  2. Go to the PLEG/PLTS Actions Editor, Also in Advanced mode.
    Select a device … and inspect the Actions it supports.

All of these actions can be call from LUA code.

Hi Richard,

Trying to make it work but I think I have issues with the syntax… Can you tell me what is wrong with it ?

luup.call_action(‘urn:rts-services-com:serviceId:ProgramLogicC’,‘LogicAction Name?’, ‘??’ ,‘DeviceID’)

Does RunAction is the actual “Logic Action name” from the pleg editor ?

I know this sounds really a basic question… thats were am I :slight_smile:

Thanks !

Check above:

http://forum.micasaverde.com/index.php/topic,35913.msg265901.html#msg265901

:slight_smile: looping :slight_smile: wrong link ?