The Vera Community forums have moved!

General => Remote Control => AutoVera => Topic started by: onepointbrewing on October 19, 2016, 06:49:15 am

Title: Multiple sensors - same variable - how?
Post by: onepointbrewing on October 19, 2016, 06:49:15 am
Front door lock
3 sensors

How do I write something like this using one profile that is triggered when the front door is locked with 3 sensors that have the same variable (%avarmed):

(Profile)
Front Door
Status

(Task)
If %avnewstatus ~ 1
 Say "the front door is locked"

     If  S1 Armed   %avarmed()
     Say " and sensor 1 is armed"
     else
     Say " and Sensor 1 is not armed"
     End if

     If S2 Armed %avarmed()
     Say "and sensor 2 is armed"
     Else
     Say "and sensor 2 is not armed"
     End if

Else
Say "The front door is not locked"
End if

How do i tie the %avarmed() variable to the specific sensor  like %avarmed(sensor1) in a task

Many thanks
Title: Re: Multiple sensors - same variable - how?
Post by: aa6vh on October 19, 2016, 09:54:22 am
I will need more details in order to help.

You might want to post this over on the AutoWear forum run by the developer:

http://forum.joaoapps.com/index.php