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

Offline onepointbrewing

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +2/-0
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):

(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

Offline aa6vh

  • Hero Member
  • *****
  • Posts: 618
  • Karma: +13/-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:

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