Announcement

Collapse
No announcement yet.

Get Device ID from Device Address

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

  • Uncle Michael
    replied
    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

    Leave a comment:


  • Uncle Michael
    replied
    See this post.

    Leave a comment:


  • ramshaklez
    started a topic Get Device ID from Device Address

    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
Working...
X