Announcement

Collapse
No announcement yet.

Direct Command (API) not Working

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

    Direct Command (API) not Working

    Blade,

    I am trying to setup events to toggle schedules for an RTC-80 t-stat. I am getting these errors when running the events. There is one to set an OFF schedule and another to set an ON schedule.

    Error Running script(2) &hs.PluginFunction( "BLStat", "", "LoadSchedule", new Object() {1,"BUDERUSON"} ), init error: Expected end of statement

    Event Running script statement immediately: &hs.PluginFunction( "BLStat", "", "LoadSchedule", new Object() {1,"BUDERUSON"} )

    Event Event Trigger "HVAC Controls BUDERUS ON"

    I am running 2.0.69.0 version of BLSTAT.

    Please advise where to look for the source of the error

    -Cliff

    #2
    Try this:

    Code:
    &nhs.PluginFunction( "BLStat", "", "LoadSchedule", new Object() {1,"BUDERUSON"} )
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Works!! Thank you....

      Now tell my why the "n" is needed after the ampersand.

      Comment


        #4
        That was something Rich added to tell that it was vb.net code to execute
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment

        Working...
        X