We have moved at community.getvera.com

Author Topic: 2 scenes that may try to run at same time, conflict?  (Read 581 times)

Offline 8trek

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
2 scenes that may try to run at same time, conflict?
« on: June 14, 2016, 03:40:34 pm »
Here's my scenario:  Scene 1 is triggered when door is opened regardless of state of door sensor.  Scene 2 is triggered when same door is opened an state of door sensor is armed.  Should VERA plus 1. run both scenes one after the other, or 2. only run 1, or 3. potentially get confused and do nothing?

I've been experiencing intermittent failures and assume it has something to do with this.

Offline aa6vh

  • Hero Member
  • *****
  • Posts: 642
  • Karma: +15/-0
Re: 2 scenes that may try to run at same time, conflict?
« Reply #1 on: June 15, 2016, 10:00:54 am »
Scenes are actually instantaneous, in that Vera immediately does what is specified, creating schedule events for stuff that is delayed. Then the scene processing ends.

So scenes are run one at a time.

However, there is no guarantee which scene will be run first when you have the same trigger. Is it possible that one scene conflicts with the other? (for example one scene turns on a light, the other turns it off. The status of the light afterwards would depend on which scene ran last.)