We have moved at community.getvera.com

Author Topic: Conditional Logic  (Read 6613 times)

Offline pjgolian

  • Full Member
  • ***
  • Posts: 155
  • Karma: +0/-0
Conditional Logic
« on: October 28, 2008, 10:08:55 pm »
Any plans to support conditional logic?

For example, with my X10 system I have the following configuration:

X10 Wall Switch that controls my upstairs hallway lights.
2 x10 motion detectors; 1 at the bottom of the stairs, the 2nd in the upstairs hallway

I then created several conditional events for turning off the hallway light.  The off event is only triggered if both motion sensors haven't detected motion of XX amount of time.  I also have separate on events that are triggered only if a "not bedtime" variable (triggered by a scene - x10 command) is not set to true.  This allows me to suppress the hall lights from turning on if I get up in the middle of the night.


Offline micasaverde

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +15/-1
Re: Conditional Logic
« Reply #1 on: October 28, 2008, 10:25:47 pm »
Yes, this is what the Lua module will allow you to do.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Conditional Logic
« Reply #2 on: October 28, 2008, 11:24:08 pm »
Is there any ETA on LUA?

Offline pjgolian

  • Full Member
  • ***
  • Posts: 155
  • Karma: +0/-0
Re: Conditional Logic
« Reply #3 on: October 29, 2008, 12:28:03 pm »
How will Lua work?  Is it a script language or will it have a GUI?  Both?

Offline gordonmeyer

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Conditional Logic
« Reply #4 on: October 30, 2008, 05:49:44 pm »
Lua is a scripting language, so I'm guessing there wont be a GUI.

See www.lua.org

Offline micasaverde

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +15/-1
Re: Conditional Logic
« Reply #5 on: October 31, 2008, 03:16:22 pm »
Our goal is to have Lua by the end of December.  The scripts will be 'guided' in the web UI to make it easier, and we'll have a wiki with lots of templates.

Offline pjgolian

  • Full Member
  • ***
  • Posts: 155
  • Karma: +0/-0
Re: Conditional Logic
« Reply #6 on: November 04, 2008, 10:25:18 pm »
Our goal is to have Lua by the end of December.  The scripts will be 'guided' in the web UI to make it easier, and we'll have a wiki with lots of templates.


Is this a public release date or a beta release?  I would be interested in beta testing.

Offline micasaverde

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +15/-1
Re: Conditional Logic
« Reply #7 on: November 05, 2008, 01:54:52 pm »
We'll make an announcement when there's a pre-release version to test.