I have a manually triggered event calling this vb script:
Sub Main(parm as object)
For Each d As String In hs.PluginFunction("BLSecurity", "", "GetAllDevicesInAlert", Nothing)
hs.writelog("Info", "Device: " & d & " is a device in alert!")
Next
hs.writelog("Info", "Finish listing devices in alert")
End Sub
The only thing that shows in HS log:
Mar-07 5:00:51 PM Info Finish listing devices in alert
Mar-07 5:00:51 PM Event Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/devicesinAlert.vb
Mar-07 5:00:51 PM Event Event Trigger "Alarm List sec devices in alert"
Mar-07 5:00:51 PM Event Event Alarm List sec devices in alert triggered by the event page 'Run' button.
What am I doing wrong??
Sub Main(parm as object)
For Each d As String In hs.PluginFunction("BLSecurity", "", "GetAllDevicesInAlert", Nothing)
hs.writelog("Info", "Device: " & d & " is a device in alert!")
Next
hs.writelog("Info", "Finish listing devices in alert")
End Sub
The only thing that shows in HS log:
Mar-07 5:00:51 PM Info Finish listing devices in alert
Mar-07 5:00:51 PM Event Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/devicesinAlert.vb
Mar-07 5:00:51 PM Event Event Trigger "Alarm List sec devices in alert"
Mar-07 5:00:51 PM Event Event Alarm List sec devices in alert triggered by the event page 'Run' button.
What am I doing wrong??
Comment