Announcement

Collapse
No announcement yet.

Get Device ID from Device Address

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

    Get Device ID from Device Address

    I am using hs.RegisterStatusChangeCB to trigger a script anytime my device statuses change. Overall it work likes a charm but I have one issue...

    The parameters that are passed as part of hs.RegisterStatusChangeCB are:

    parm(0) = House Code (Device Technology Address)
    parm(1) = Device Code (Device Technology Address)
    parm(2) = Device New Value
    parm(3) = Device Old Value


    Unfortunately, I need the Device ID ("904" in my screenshot below) but that is not passed.


    Main Question: Is there a way to determine the Device ID from the Address?


    Secondary Question... what is the difference between parm0 and parm1? When I test it, it outputs the Device Technology Address for both of these ("Z12" in my screenshot below).

    Screenshot

    #2
    See this post.
    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


      #3
      Originally posted by ramshaklez View Post
      Is there a way to determine the Device ID from the Address?
      Sorry about the last link. It is apparently incorrect information. What you are looking for may actually be in the help file. What I'm not sure about is the address information the CB function is providing. If it is the complete device address, then it looks like hs.GetDeviceRef should work. See below:
      Attached Files
      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