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:
- The Vera Scene Editor “Advanced Editor”
Select a device … and inspect the Actions it supports. - 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
Thanks !
looping wrong link ?