Hi,
I have a function I am trying to call from a PLEG action luup code.
The Action is triggered, but the function declared in Startup LUA does not get called.
Is this a PLEG or LUA limitation? (or just a user error?)
I have put log statements before and after the call, and in the function. The function works fine when called from within Startup LUA, and the before statement logs are ok, but no log entries for the actual call.
ALL plugins have their OWN LUA namespace (i.e. they do not share any LUA variables or functions with another PLUGIN.)
All Scenes use the SAME LUA namespace which is the same as the one used by the Startup LUA.
Thanks - I knew the variables were local to a PLEG, did not realise that included declarations and functions from Startup.
I worked around it by changing the PLEG action to call a scene, and putting the LUUP code in there. all working nicely now. 