Announcement

Collapse
No announcement yet.

Cannot see devices in alert - using script

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

    Cannot see devices in alert - using script

    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??

    #2
    bump

    Comment


      #3
      Is the system armed when you run this script?
      Cheers,
      Bob
      Web site | Help Desk | Feature Requests | Message Board

      Comment


        #4
        No. The system is not armed. I assume this is a requirement.
        My idea was to use that to list any device in alert at bedtime.
        Thanks.

        Comment


          #5
          Yes security mode needs to be in one of the security modes for it to returns devices in alert
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment

          Working...
          X