Help with trigger condition

Posted on
Sun May 28, 2017 10:38 am
samb offline
Posts: 19
Joined: Aug 29, 2016

Help with trigger condition

Hi,

I need help with a trigger condition. I want a light to turn on if "varOne" or "varTwo" is true and a light sensors value is less than 50.
An alternative would be if I could set "varThree" to true if "varOne" and "varTwo" is false.

Would be really nice if someone could help me.

/Sam

Posted on
Sun May 28, 2017 11:46 am
autolog offline
Posts: 3256
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+1 aka UTC+1]

Re: Help with trigger condition

Hi Sam,
One way of doing this is as follows:
Set up three variables: VarOne: false, VarTwo: false and VarCheck: 0 (zero).
Then setup three triggers: One each for VarOne and VarTwo so that any change in the variable runs an Action = Variable Action (modify variable) to increment VarCheck by +1.
The third trigger will check for a change in the light sensor's value and it will also run a Variable Action (modify variable) to increment VarCheck by +1.

Then setup a fourth trigger to run whenever VarCheck has any change.
Setup a condition as follows:
trigger_condition.png
Trigger Condition
trigger_condition.png (39.07 KiB) Viewed 882 times


Click on a + sign while holding the ALT key (the + sign changes to 3 dots) to added a compound condition as shown in the image above.

Hope this helps. :)

Posted on
Sun May 28, 2017 4:05 pm
samb offline
Posts: 19
Joined: Aug 29, 2016

Re: Help with trigger condition

Ok, thank you!!

I didn't know you could hold down the alt key! It solved my problem :)

/Sam

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests

cron