We have moved at community.getvera.com

Author Topic: Multiple sensors - same variable - how?  (Read 1761 times)

Offline onepointbrewing

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +2/-1
Multiple sensors - same variable - how?
« 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):

Front Door

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

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

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

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

Offline aa6vh

  • Hero Member
  • *****
  • Posts: 642
  • Karma: +15/-0
Re: Multiple sensors - same variable - how?
« Reply #1 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: