Announcement

Collapse
No announcement yet.

Check if doors are open or closed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Check if doors are open or closed

    Here is a little vbnet script to check if doors with a DS10a are open or closed.

    The script loops through each device number between "[5" and "[19" and checks to see if the device is a door using Location 2 as a check (I set up location 2 for doors as 'Door alert', but if you use something else, you'll need to change the test).

    Then if it is a door, it checks if the door is open, closed or neither and announces same. If it's not open or closed, the DS10 probably needs checking - maybe the battery is gone for example. Of course, you might only want to announce the open doors, in which case just delete the 'door closed' announcement. Also, you'll probably need to change the range of device numbers to include those of your doors. Feel free to adapt, change or whatever to suit what you want to do.
    Attached Files
    Last edited by MrT; June 20, 2008, 09:39 AM.
Working...
X