Announcement

Collapse
No announcement yet.

set/get device Voice Command string

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

    set/get device Voice Command string

    How can i programmaticly set/get the device Voice Command string. The undocumented function 'dev.VoiceCommand(hs)' doesn't works for me.

    #2
    I just tried it and dv.VoiceCommand(hs) or dv.VoiceCommand(Nothing) does return the voice command string properly and setting it like this works as well:

    PHP Code:
    dv.VoiceCommand(hs) = "Testing 3 2 1" 
    What happened when you tried it? Maybe post the whole script as there may be something else wrong.
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      I run this little vb-script:

      Public Sub VC_Devices2()
      Dim enx As Scheduler.Classes.clsDeviceEnumeration
      Dim dv As Scheduler.Classes.DeviceClass
      enx = hs.GetDeviceEnumerator()

      If enx Is Nothing Then
      hs.WriteLog("ShowVCs", "'enx' is not an object.")
      Exit Sub
      End If

      Do
      dv = enx.GetNext()
      If dv Is Nothing Then Continue Do
      If dv.MISC_Check(hs, &H200) Then
      hs.WriteLog("VoiceCommands", String.Format("{0}={1}", dv.Name(hs), dv.VoiceCommand(hs).ToString()))
      End If
      Loop Until enx.Finished

      End Sub

      Comment


        #4
        I believe there was a bug with dv.VoiceCommand ( worked on ASPX web pages but not scripts) which was corrected with HS3 Version 3.0.0.451. What version are you currently running?
        Jon

        Comment


          #5
          Hi jon00,

          As you can see I run currently 3.0.0.435. :
          HomeSeer Version: HS3 Standard Edition 3.0.0.435 (Windows)
          So I'm gonna update HS3 to the latest version this weekend when I'm home again. I'll let you know the result and thanks so far for looking into this problem!

          Comment


            #6
            Hi jon00,

            Success! I upgraded HS3 to :
            HomeSeer Version: HS3 Standard Edition 3.0.0.478 (Windows)
            and it works. Thanks a lot for your time, it helps me really a lot.

            Léon,

            Comment

            Working...
            X