No announcement yet.

ListenForCommands error

  • Filter
  • Time
  • Show
Clear All
new posts

    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

    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.
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2


      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.