Announcement

Collapse
No announcement yet.

set/get device Voice Command string

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

  • vsl52
    replied
    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,

    Leave a comment:


  • vsl52
    replied
    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!

    Leave a comment:


  • jon00
    replied
    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?

    Leave a comment:


  • vsl52
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • vsl52
    started a topic set/get device Voice Command string

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