Announcement

Collapse
No announcement yet.

Quick update to AK Event scripts to ignore house codes

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

    Quick update to AK Event scripts to ignore house codes

    I added the following the Alex Kurz's event scripts. I wanted a way to not include certain entire house codes (such as dusk/dawn detectors). Replace the device string build section with this...Works good for me...

    For i = 1 to DevCount
    set device = hs.GetDevice(i)
    If i = 1 Then
    CallString = device.location & " " & device.name
    Else
    Select Case Left(hs.GetDeviceCode(device.location & " " & device.name), 1)
    'Change the following statement to reflect the house codes to ignore
    Case "K", "M", "z", "t", "["
    dvcode = EE
    Case Else
    CallString = CallString & "|" & device.location & " " & device.name
    End Select
    End If
    Next
Working...
X