I have two triggers that react on the same action (clicking a wall switch).
Based on the condition one of the action sets should trigger. The condition evaluates if a certain variable is true ore false.
if the variable is true, the actions of trigger 1 should fire
if the variable is false, the actions of trigger 2 should fire
the actions of the triggers invert the variable (in trigger 1 from true to false, in trigger 2 from false to true).
In practise this should result in switching of the variable by clicking the switch, click - variable set to true, click- variable set to false, click - variable set to true ....
BUT what actually happens is that both trigger actions are executed. So trigger 1 evaluates the conditions to true and switches the variable.
then indeed the conditions for the second trigger is also evaluated to true and the variable is inverted again.
I would expect that both trigger conditions are evaluated at the same time and consequently only one of the two conditions is evaluated as true and only one action set is executed.
Assuming that this has to do with when the variable is checked exactly, I played around with delaying the switching of the variable a few seconds (in the hope that than the system eventually finished in evaluating both triggers and will not fire actions on trigger 2 when the conditions evaluates to true)
Any explanation on the behavior and how to fix it is appreciated!