We have moved at community.getvera.com

Author Topic: Appending to a variable  (Read 641 times)

Offline Borat

  • Full Member
  • ***
  • Posts: 169
  • Karma: +4/-5
Appending to a variable
« on: July 30, 2014, 02:50:45 pm »
Hi

Posted this in the PLEG forum, but I wondered if it might be LUA code I need to achieve what I want.

I would like to have a function where, if I set my house to "sleep" or "away" mode, I can get notified when any windows from a list are open. I can check which are open easily enough from PLEG conditions, but I was hoping to do it all in one condition and push the results into a single notification - eg "The following windows and doors are open: <variable with all open windows and doors>". Worst case, I could have a single condition for each one, but even then I would still need to find some way of generating a list that I can use in an action.

Any ideas?