No announcement yet.

ListenForCommands error

  • Filter
  • Time
  • Show
Clear All
new posts

  • gcyeaw
    Thanks. I should have figured that out, but as you indicated, much of the documentation or lack there of is a little short on details.

    Since the script is a plain text, not .vb, it didn't like the parens. But it worked with the addition of the host.


    Leave a comment:

  • CFGuy
    Try this but Replace HomeGamerefault with the name of your speaker client.

    hs.ListenForCommands (False, "HomeGamerefault")

    As a general rule always add the parens around the parameters in HS3.
    And in this case the scripting docs forgot to put the parameter for the Host that you are trying to set the listen option for.

    Leave a comment:

  • gcyeaw
    started a topic ListenForCommands error

    ListenForCommands error

    This script is straight from the docmentation.

    sub main()

    ' listen only for attention phrase
    hs.ListenForCommands FALSE

    end sub

    For some reason it fails with the following error:

    Running script, script run or compile error in file: C:/Program Files/HomeSeer HS3/scripts/Listen_Test.txt5:Invalid procedure call or argument: 'hs.ListenForCommands' in line 4 More info: Invalid procedure call or argument: 'hs.ListenForCommands'

    Does the syntax need to be altered for HS3? I did try several things but nothing helped.

    Current Date/Time: 2/16/2016 11:53:20 AM
    HomeSeer Version: HS3 Standard Edition
    Operating System: Microsoft Windows 7 Home Premium - Work Station
    System Uptime: 1 Day 22 Hours 13 Minutes 49 Seconds
    IP Address:
    Number of Devices: 206
    Number of Events: 23

    Enabled Plug-Ins Applied Digital Ocelot iAutomate RFID Random
    3.0.5579.15955: Ultra1Wire3 X10 Z-Wave