Announcement

Collapse
No announcement yet.

BLStat Hold Scripting

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

    BLStat Hold Scripting

    Hi Guys, i have been trying to get a hold script working that will set the hold temp on a thermostat for a period of time from homeseer event but have been unsucessfull

    i read the help on the BLStat plugin and found the below

    ----------------
    Description
    This method sets the hold on for a specific thermostat.


    VB.Net Scripting Example

    hs.Plugin("BLStat").SetHoldOn(1,74,60)
    ----------------

    I tried a .vbs file first with code hs.Plugin(BLStat).SetHoldOn(2,78,400) but get the error (Running script, script run or compile error in file: Test.vbs1044:Cannot use parentheses when calling a Sub in line 1 More info)

    i then tried a .vb file with code

    Sub Main
    hs.Plugin(BLStat).SetHoldOn(2,78,400)
    End Sub


    but get the error Script compile error: Name 'BLStat' is not declared.on line 15

    Please any help will be helpful, i am not a programmer, so i'm just tryign to follow examples i found in the help files

    #2
    Try this:

    Sub Main
    hs.Plugin("BLStat").SetHoldOn(2,78,400)
    End Sub
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      BLStat needs to be in quotes, per Bob's example
      Don

      Comment


        #4
        Originally posted by donstephens View Post
        BLStat needs to be in quotes, per Bob's example
        Thanks for the Help guys, the below worked in the VBS file, the quotes did the trick

        hs.Plugin("BLStat").SetHoldOn 2, 78, 400

        Comment

        Working...
        X