Announcement

Collapse
No announcement yet.

Get / Write Virtual Device Status?

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

  • Get / Write Virtual Device Status?

    For a virtual device with 5 Values/Status defined in Status Graphics:
    Value 1 Status: "Away Normal"
    2 "Away Vacation"
    3 "Not Set"
    4 "Stay Protect"
    5 "Stay-Goodnight"
    I can get the values (hs.DeviceValue(refid)). Is it possible to get the Status from a hs.??? script command?
    I find that hs.DeviceString(refid) returns blank.

  • #2
    You can do it using the following:

    Code:
        Dim CS As Object
        CS = hs.CAPIGetStatus(targetDev)
        hs.writelog("CAPI Status",CS.Status)
    Replace targetDev with the reference ID of the device. This example writes it to the HS log, but it can be used in different ways.
    HS 3.0.0.548: 1976 Devices 1156 Events
    Z-Wave 3.0.1.262: 123 Nodes on one Z-Net

    Comment


    • #3
      Great.... thanks!

      Comment

      Working...
      X