boolean and'ing of triggering events

Hi all,

I want a scene to activate when 2 devices do something (as opposed to one). For example, if the DSC panel is ARMED and the garage door opens, I want to trigger a scene.

I see how a scene can be triggered by OR’ed device triggers, but, I want an “and” based trigger of 2+ devices.

How is this accomplished?

Thanks.

Vera does not support it natively There are three methods… you can use:

Condition Scenes (you have to write a little LUA code in your scene) See this thread: http://forum.micasaverde.com/index.php?topic=18679.0
Program Logic Event Generator (PLEG), it is in the app store (some ramp up required but probably the most power of the three options, has other cool things like timers, counters, sequence recognition, etc)
Combination Switch, it is in the app store (a little simpler option)

Hi,

Thanks.

It looks like the Combo siwtch doesn’t work in UI7, when I go to the configure option and change the device to use 2, I see the following: Failed to get plugins
Is this expected?

I had browsed the Luup code but can’t figure out how to make that work, even looking at all of the examples, I see only things for detecting if it’s day or night or similar, not detecting the status of a Zwave device. I probably need to look again, however, based on your reply.

Regarding the PLEG, I’ll try that as well.

-mike

+1 for PLEG, but it has a learning curve.

Forum member @RexBeckett has create two excellent tutorials, among other things. I would suggest that you and anyone else interested have a look at:

Conditional Scene Execution: Some Examples

PLEG Basics - An Introduction to the Program Logic Event Generator

I am the Author of PLEG.

Before PLEG I used the excellent plugins provided by Futzle (Combination Switch and Countdown Timer) that were available at the time.
My logic required many of these and many scene’s … I wanted an integrated platform for my automation logic.

I first did PLTS which replaced Countdown timer … but had the equivalent of a Combination Switch for the Countdown Trigger, Reset, and Poke inputs.

Then I generalized the Logic and made PLEG … with NO user interface … just automation. Initially it had NO actions. You used PLEG as an input trigger to your scene’s. Then I decided to add the Actions to PLEG … to improve the robustness of the actions in the context of restarts.

So I consider PLEG/PLTS one(+?) generation newer than Combination Switch, Countdown Timer, and Vera Scenes.

I am the author of Combination Switch.

The plugin “should” work in UI7. I am on UI7 and I eat my own dog food. All of my conditional logic is done with Combination Switches and Countdown Timers.

You have to be directly connected to your Vera on the LAN to configure a Combination Switch. Connecting through the getvera servers, or if you have “secure my Vera” turned on, produces the error message you quoted.

Edit: if you can wrap your brain around PLEG, use it. It’s better maintained and has more power than my creations.