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