Announcement

Collapse
No announcement yet.

Get / Write Virtual Device Status?

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

  • Jayhawk
    replied
    Great.... thanks!

    Leave a comment:


  • sparkman
    replied
    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.

    Leave a comment:


  • Jayhawk
    started a topic Get / Write Virtual Device Status?

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