3 variables, how to trigger something if they have a value

Posted on
Fri Sep 02, 2016 5:51 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

3 variables, how to trigger something if they have a value

Say I have three "presence" variables:

JohnHome
SallyHome
BobHome

If all of those are suddenly false, I'd like to trigger an action once. Is there a good way to do this?

Thanks

Posted on
Fri Sep 02, 2016 6:37 pm
DaveL17 offline
User avatar
Posts: 6759
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: 3 variables, how to trigger something if they have a val

If I understand, I think you'll need three triggers--one for each variable.

Variable JohnHome:
Trigger: when JohnHome becomes false
Condition if ALL conditions match rules:
if SallyHome is false
if BobHome is false
Action: whatever action you want to take.

Variable SallyHome:
Trigger: when SallyHone becomes false
Condition if ALL conditions match rules:
if JohnHome is false
if BobHome is false
Action: whatever action you want to take. (same action as above)

etc.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Sep 03, 2016 12:57 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: 3 variables, how to trigger something if they have a val

I (think I) do this with a virtual device group.

Select the three variables within the virtual device.

Then trigger off the virtual device - if it's on then at least one person is home.

I'll double check later.


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests