Announcement

Collapse
No announcement yet.

Alarm properties question

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

    Alarm properties question

    I'm trying to determine if this plug-in will allow me to check alarm settings by user, but I've gotten confused.

    If I query the Alarm object,
    For Each Alarm As Object in hs.Plugin("BLAlarm").Alarms

    and then list information for each alarm,
    hs.WriteLog "Alarm Time", Alarm.Key & " - " & Alarm.AlarmTime

    it appears that I will get a list of all alarms for all users. I'd like to be able to distinguish which alarms belong to which users. How do I do that?
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548, NUC i3

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

    #2
    You cannot currently do this via scripting.
    You will need to add a feature request for this.
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      OK. Thanks.
      Mike____________________________________________________________ __________________
      HS3 Pro Edition 3.0.0.548, NUC i3

      HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

      Comment


        #4
        I have added this to build 1.0.13.0 on my site and in the HS updater.

        You can now do this:

        For Each Alarm As Object in hs.Plugin("BLAlarm").Alarms("Bob")
        Next

        The user name is optional so if you do not pass it then it will return all alarms.
        Let me know how it works.
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


          #5
          Wow. That has to be the definition of responsive. I'll try it out immediately. Thanks.
          Mike____________________________________________________________ __________________
          HS3 Pro Edition 3.0.0.548, NUC i3

          HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

          Comment


            #6
            Works just as I'd hoped.

            If only all my requests were granted so quickly. Thank you again.
            Mike____________________________________________________________ __________________
            HS3 Pro Edition 3.0.0.548, NUC i3

            HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

            Comment

            Working...
            X