Announcement

Collapse
No announcement yet.

Retreiving Status Graphics Text from a device

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

    Retreiving Status Graphics Text from a device

    This has probably been run into the ground but I can't find an answer.

    I'm trying to pull the status graphic text from a device with 14 pairs. This gives me 14 buttons on the device home page that I can push and change the value.

    I'm trying to get the text from this device but don't know how.

    Tried using the DeviceScriptButton_List function, but can't get it to return anything. Could anyone please help this abused homeseer user?
    Attached Files
    Don

    #2
    Hi Don,

    Here's a vb.net code snippet that will print various device parameters to the log file, including the value and status. Just replace 1234 with the reference id of the applicable device.

    Code:
    	Dim CS As Object
    	CS = hs.CAPIGetStatus(1234)
    	dim Debug as Boolean = True
    	Dim logName = "CAPI Test"						
    	If Debug Then hs.writelog(logName,CS.ImageFile)
    	If Debug Then hs.writelog(logName,CS.Status)
    	If Debug Then hs.writelog(logName,CS.StatusHTML)
    	If Debug Then hs.writelog(logName,CS.ClassName)
    	If Debug Then hs.writelog(logName,CStr(CS.Value))
    Hope that helps.

    Cheers
    Al
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      You are a life saver, Al.

      Thanks
      Don

      Comment

      Working...
      X