Announcement

Collapse
No announcement yet.

[VBSCRIPT] Simple RS-232 TR40 Heat Control Script

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

    [VBSCRIPT] Simple RS-232 TR40 Heat Control Script

    Put this script in your HomeSeer/scripts directory. Do not change its name unless you know what you are doing.

    Edit the script to match your system
    ---COM PORT
    ---Address of your TR40 (Usually leave set at 1)
    ---Limits of the set points that can be requested
    ---Debugging (or logging) on/off

    When calling this script, it will:
    Check to see if that ComPort is already running
    (A problem usually only if you have Hyper Terminal running)

    Check to see if the set point you requested
    is in your preset range.

    Request a feedback and then it will log the feedback
    if debugging is turned on.

    ------------------------------

    Call this script from an event's script tab. To set the heat to 70 degrees F, enter it like this:

    &hs.RunEx "TR40 Control.txt","SetHeat",70

    As time allows, I will add more such as verification the requested setpoint and mode actually was validated by the feedback and retries, but don't hold your breath.

    More documentation is in the script.

    Use at your own risk.

    Regards, Bill

    HS 1.6.186 / HSP 2.0.165 / Pentium 4 2.6 GHz HT / 512 MB Dual Write RAM
    3 Fujitsu 510 Touch Pads / Way2Call Hi-Phone USB / ATTNV Crystal 16
    Ocelot / SECU-16 / SECU-16I / Ocelot Watchdog with Appliance Module on HS computer
    Guardian Angel / mcs Temperature / mcs Performance / DooCPU / HS Webcam / SeerAMP
    Attached Files


    ~Bill
Working...
X