How can i programmaticly set/get the device Voice Command string. The undocumented function 'dev.VoiceCommand(hs)' doesn't works for me.
Announcement
Collapse
No announcement yet.
set/get device Voice Command string
Collapse
X
-
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"
HS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
-
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
Comment