Author Topic: How do scenes get triggered?  (Read 517 times)

Offline geoffschultz

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
How do scenes get triggered?
« on: February 15, 2017, 10:34:58 am »
I'm new to Vera, having moved from an Insteon environment.  I am trying to understand what triggers scenes.  I have 2 switches (Front Lights and Garage Light) and 3rd controlled outlet for the walkway lights.  When the front light is turned on, it runs the scene "Front Lights On" which turns on the walkway lights and the garage light.  Visa versa for the Garage Light.

When looking at the logs, I was quite surprised to see the when I turn on the front lights, the scene Front Lights On runs, but then I see "Garage Light On" run.  Really!  How does this not go circular?  And how do I tell a scene to run only if started by an event?

-- Geoff

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 10063
  • Karma: +759/-141
Re: How do scenes get triggered?
« Reply #1 on: February 15, 2017, 11:13:54 am »

For conditional execution/automation you need to look at:
Conditonal Scene Execition:,18679.0.html

Or using PLEG an place of what you use scene for ... It's quite powerful and much more user friendly then LUA.,21603.0.html

I am the Author of PLEG ... so I am biased ...

As far as concerns about circular events ... turning on a light that is already on does not necessarily or usually trigger a scene.
If you use LUA this behavior is defined by the developer of the device you use.
If you use PLEG this behavior is defined by your automation logic.