I’m trying to understand trigger logic.
Scenario:
I have a 4-in-1 sensor which allows me to sense temperature. Based on the temperature, I’d like to turn on/off a ceiling fan, which is also ZWave controlled.
Here’s what I fail to understand (FYI - I read through the documentation and couldn’t find an answer):
-
Are trigger commands true / false oriented?
a. When the temperature hits 75 degrees, the trigger is true and therefore the fan turns on.
b. When the temperature falls below 75 degrees, the trigger is false and the fan turns off.
-
Or, are they true oriented?
a. Scene 1 - When the temperature hits 75 degrees, the trigger is true and therefore the fan turns on.
b. Scene 2 - When the temperature falls below 75 degrees, the trigger is true and the fan turns off.
If it’s option 2, how does Vera handle conflicting Scenes?
Thanks in advance,
DG
Scene triggers are unidirectional events - you would call them true oriented. When the defined condition becomes true, the trigger is asserted and, unless prevented by Luup code in the trigger or scene, the scene will be run. The trigger condition must become false before it can fire again - unless it is a security sensor which can sometimes re-fire without becoming false.
Vera makes no attempt to manage conflicting scenes. Generally they will be started in the order that the triggers occur. You must provide any required lock-out logic yourself.
See Conditional Scene Execution for some ways to add logic to scenes.
Not the answer I was hoping for; but it was the answer I expected.
Thank you for answering this.
You can do this in PLEG with one input trigger,one condition,and one action.
Input Trigger:
Warm When temp is over 75
Condition:
WarmChange Warm
Action for WarmChange
Turn on the fan then use the advanced tab for actions to change the argument for the fan to be:
{(Warm ? 1: 0)}