Announcement

Collapse
No announcement yet.

Confirmation broken since HS2.1?

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

    Confirmation broken since HS2.1?

    I'm not sure if I'm doing something wrong, but since my installation of HS2.1 the following script doesn't work anymore:

    sub main()

    ' Ask for confirmation
    hs.SpeakEx 1,"Do you want to re-boot sir?",TRUE
    hs.LastVoiceCommand = ""
    hs.AddVoiceCommand "yes"
    hs.AddVoiceCommand "no"
    timeout = timer + 10
    do
    for ti = 1 to 75
    next
    s = hs.LastVoiceCommand
    if timeout < timer then s="timeout"
    if s <> "" then exit do
    hs.WaitEvents
    loop
    if s = "yes" then
    hs.SpeakEx 1,"Very well sir. Hold on.",TRUE
    hs.Launch "C:\Programs\HomeSeer 2\batch\reboot.bat",""
    else
    hs.WriteLog "Info", "No response"
    end if

    hs.ClearAllVoiceCommands

    end sub

    Problem is that my confirmation "yes" is NEVER heard. This worked just fine untill I installed HS2.1.

    Anyone?

    #2
    Post the error that appears in you log please.


    ~Bill

    Comment


      #3
      Dutch,
      You are correct. Any where there is an hs.AddVoiceCommand it puts the speaker app in the Listening for Attention phrase. So to get the script to work you would need to say the attention phrase after the hs.AddVoiceCommand commands. I would suggest verifying what I have stated and if your see this is true then put in a help request.
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment

      Working...
      X