Property variable needed in LUA action code
I need to access plg properties in Action LUA code - what is the syntax?
Other PLG variables available to action LUA code?
Does anyone have a specific example of the following?
For each input Variable name or Condition name xxx you have access to it from LUA as
XXX.state
XXX.seq
XXX.oseq
XXX.seqh
Where XXX is the uppercase of the input or condion name. And XXX.state is the value, XXX.seq is the On timestamp and XXX.oseq is the Off timestamp, and XXX.seqh is a history of the last N on timestamps (max of 10, not saved across restarts, only the most recent one is) XXX.seq should always equal XXX.seqh[1]. The seqh is currently only used internally for the Multi-Trigger checks.
The LUA context is unique for each Plugin. You can share global variables between Actions, but not between PLEG/PLTS devices or Vera Scenes.