Announcement

Collapse
No announcement yet.

Load setpoint into variable

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

    Load setpoint into variable

    How can I load the heat or cool setpoints into another variable?

    I'm trying to pass the information to a JDS Stargate for display and adjustment on the LCD keypads. I've created a tstat setpoint variable but I can't see how to load that information from the HAI device into it.

    Thanks

    Tim
    -Tim

    HSPro - 3.XXX - Dell mini W7 x32
    Way2 Call
    Elk M1 Gold
    UPB HAI switches
    HAI RC2000 Thermostat

    #2
    Is the setpoint value in a device string?
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Originally posted by Rupp View Post
      Is the setpoint value in a device string?

      Yes, the device string has the degree symbol with it, but the device value has the same number w/o a symbol.

      Maybe the device value would be easier to load to another variable?

      Still need to know how.

      Thanks

      -Tim
      -Tim

      HSPro - 3.XXX - Dell mini W7 x32
      Way2 Call
      Elk M1 Gold
      UPB HAI switches
      HAI RC2000 Thermostat

      Comment


        #4
        When you say a variable, are you writing a script and need to use the value in a script or do you mean to load the value into another virtual device?
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Originally posted by Rupp View Post
          When you say a variable, are you writing a script and need to use the value in a script or do you mean to load the value into another virtual device?
          I have a device from stargate that is a variable.

          I need to copy the thermostat setpoint value into that other variable.

          For example *3 holds the thermostat setpoint. $7 is the stargate variable that I need to load with the value from *3.

          Once $7 has the value, I can display it on my LCD Keypads.

          The first screen shot is *3 that holds the setpoint value. The second is the stargate variable that I need to load with the setpoint.



          -Tim
          Attached Files
          -Tim

          HSPro - 3.XXX - Dell mini W7 x32
          Way2 Call
          Elk M1 Gold
          UPB HAI switches
          HAI RC2000 Thermostat

          Comment


            #6
            *3 holds the thermostat setpoint. $7 is the stargate variable that I need to load with the value from *3.

            Once $7 has the value, I can display it on my LCD Keypads.

            Try this. Name this file setVar.txt
            sub main()
            sTempVar = hs.deviceValue("*3")
            setDeviceValue "$7", sTempVar
            end sub

            This is for the device value, if you want to "see" the value then you need use SetDeviceString
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              Thanks Rupp,

              I tried it and I'm getting this error:

              12/25/2010 4:36:59 PM - Error - Running script, script run or compile error in file: setVar.txt13:Type mismatch: 'setDeviceValue' in line 3 More info: Type mismatch: 'setDeviceValue'
              -Tim

              HSPro - 3.XXX - Dell mini W7 x32
              Way2 Call
              Elk M1 Gold
              UPB HAI switches
              HAI RC2000 Thermostat

              Comment


                #8
                Sorry it should be hs.setDeviceValue "$7", sTempVar
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  Originally posted by Rupp View Post
                  Sorry it should be hs.setDeviceValue "$7", sTempVar
                  That was it Rupp.

                  Thank you so much!

                  -Tim
                  -Tim

                  HSPro - 3.XXX - Dell mini W7 x32
                  Way2 Call
                  Elk M1 Gold
                  UPB HAI switches
                  HAI RC2000 Thermostat

                  Comment

                  Working...
                  X