hsc2 is a command line tool for controlling HomeSeer 2. Various switches allow you to run events, speak, run scripts, set device status, etc. All from any batch file or other program. HomeSeer should already be running when hsc.exe is executed. If HomeSeer is not running, it will be started. When passing parameters that contain spaces, surround your parameter with quotes.

Format of the command:

hsc2 [parameters] -h HOST

Where the parameters are:

-h HOST

Must be the last parameter on the command line. This connects to HomeSeer on the given HOST. This allows hsc2 to run on a remote PC.

-sr script_name function parameter

Runs a script using the given function and parameter. Calls the hs.RunEX function

IE:

hsc2 -sr myscript.txt main my_parameter

++++++++++++++++++++++++++++++++++++++++++++++++++

-ds device_code device_string

Changes the status display of the given device to the given string

IE:

hsc2 -dc A1 "door open"

++++++++++++++++++++++++++++++++++++++++++++++++++

-x hcdc action p1 p2 p3

This will send an X10 command like:

hsc2 -x b2 on
hsc2 -x b2+3+4 off
hsc2 -x b3 dim 50
hsc2 -x b3 extended 20 49 (sets an LM14A or levition switch to 20%)

++++++++++++++++++++++++++++++++++++++++++++++++++

-e "event name"

Forces the trigger of an event like:

hsc2 -e "night time"

++++++++++++++++++++++++++++++++++++++++++++++++++

-s "speak text"

Will speak the given text like:

hsc2 -s "hello I am talking"

++++++++++++++++++++++++++++++++++++++++++++++++++

-l start|stop

Stops and starts voice recognition

To start HomeSeer listening:

hsc2 -l start

To stop HomeSeer listening:

hsc2 -l stop

++++++++++++++++++++++++++++++++++++++++++++++++++

-r command

Sends an infared command. The command is a string of commands that have been defined in HomeSeer. If you wanted to turn the device TV ON, then the command would be:

hsc2 -r tv,on

