Announcement

Collapse
No announcement yet.

Sending Aprilaire Commands from MainLobby

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sending Aprilaire Commands from MainLobby

    When the Aprilaire was script-based, you could send commands to HomeSeer to control the thermostat in the following format:

    MLServeCmd.MLHSPlugin|HS_ControlThermostat:#1~SetCoolSetpoin t~75
    I have tried this with MainLobby, but am unable to change any settings of the Aprilaire.

    Is there any way to send commands to the Aprilaire Plugin from MainLobby?

    Thanks,
    Jerry

    #2
    Hello,

    The Thermostat plugin will not support the "Control Thermostat" procedure, and you must use the thermostat specific calls. These are outlined in the SDK available in the updater, but to control MainLobby, you can change:

    MLServeCmd.MLHSPlugin|HS_ControlThermostat:#1~SetCoolSetpoin t~75

    to:

    MLServeCmd.MLHSPlugin|HS_Plugin("Aprilaire Thermostats")_CmdSetCool:1~75

    Not sure if my Mainlobby syntax is correct, but the script call to control the plugin will be formed like:

    hs.plugin("Aprilaire Thermostats").CmdSetCool(1,75)

    Any other questions, please let me know.
    -RJ (HomeSeer Tech)

    Comment


      #3
      How do you send a command from Homeseer to the thermostat plugin?
      EDIT: Simulpost with Rich. I like Rich's response better

      Comment


        #4
        Would you mind sending or listing the thermostat specific calls...I'd rather not install the SDK. I am having the same issue with ML and HS with the new 8870 plugin. Thanks!

        Comment


          #5
          What I did was create an event for every setpoint you would want and create buttons or clickable text to trigger that event.


          ~Bill

          Comment


            #6
            Has anyone tried this command:

            MLServeCmd.MLHSPlugin|HS_Plugin("Aprilaire Thermostats")_CmdSetCool:1~75

            I can't seem to get it to work...I assume it's the syntax?

            Comment


              #7
              I posted a script that does it all... Here is a link and an excerpt...

              http://board.homeseer.com/showpost.p...5&postcount=24

              You will need to look at the code to get the right parameters for different modes and activities. The various excerpts below just give you a sampling of how you do things...

              For example to set the heat setpoint to 72 deg for tstat #1:

              hs.Plugin("Aprilaire Thermostats").CmdSetHeat(1, 72)


              Code:
              currentTemp = CInt(hs.Plugin("Aprilaire Thermostats").GetTemp(tstat_num))
              heatSetPoint = CInt(hs.Plugin("Aprilaire Thermostats").GetHeatSet(tstat_num))
              coolSetPoint = CInt(hs.Plugin("Aprilaire Thermostats").GetCoolSet(tstat_num))
              hs.Plugin("Aprilaire Thermostats").GetModeSet(tstat_num)
              hs.Plugin("Aprilaire Thermostats").GetFanMode(tstat_num)
              hs.Plugin("Aprilaire Thermostats").GetHoldMode(tstat_num)
              hs.Plugin("Aprilaire Thermostats").GetCurrentMode(tstat_num)
              isOperating = hs.Plugin("Aprilaire Thermostats").GetOperating(tstat_num)
              hs.Plugin("Aprilaire Thermostats").CmdSetHeat(tstat_num, sp)
              hs.Plugin("Aprilaire Thermostats").CmdSetCool(tstat_num, sp)
              hs.Plugin("Aprilaire Thermostats").CmdSetMode(tstat_num, 0)
              hs.Plugin("Aprilaire Thermostats").CmdSetMode(tstat_num, 1)
              hs.Plugin("Aprilaire Thermostats").CmdSetFan(tstat_num, 0)
              hs.Plugin("Aprilaire Thermostats").CmdSetHold(tstat_num, 0)

              Comment


                #8
                Opps. I forgot to give you the examples for how to do this with mainlobby and my script...

                To change to cool mode ($2 is the device for my second tstat):
                MLServeCMD.MLHSPLugin|HS_RUNEX:Emotive - Thermostat Functions.vb~setModeCool~$2

                To change decrement cool setpoint by one degree:
                MLServeCMD.MLHSPLugin|HS_RUNEX:Emotive - Thermostat Functions.vb~decrementCoolSetPoint~$2

                Again, if you want my scene it has all the commands mapped to buttons already, send me a PM.

                Comment

                Working...
                X