www.homeseer.com    
 

Go Back   HomeSeer Message Board > Thermostat / HVAC Plug-ins > Thermostat / HVAC Discussion > HomeSeer HAI Omnistat Plug-in

HomeSeer HAI Omnistat Plug-in Discussions related to the HomeSeer provided thermostat plug-in for HAI thermostats. These plug-ins will eventually replace the current script-based thermostat support.

Reply
 
Thread Tools Display Modes
  #1  
Old December 25th, 2010, 12:33 AM
email68 email68 is offline
Seer Master
 
Join Date: Aug 2009
Location: Northern CA
Posts: 732
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
Reply With Quote
  #2  
Old December 25th, 2010, 12:39 AM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 36,763
Is the setpoint value in a device string?
__________________
-Rupp
Reply With Quote
  #3  
Old December 25th, 2010, 02:41 AM
email68 email68 is offline
Seer Master
 
Join Date: Aug 2009
Location: Northern CA
Posts: 732
Quote:
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
Reply With Quote
  #4  
Old December 25th, 2010, 12:23 PM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 36,763
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?
Reply With Quote
  #5  
Old December 25th, 2010, 03:57 PM
email68 email68 is offline
Seer Master
 
Join Date: Aug 2009
Location: Northern CA
Posts: 732
Quote:
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 Images
  
Reply With Quote
  #6  
Old December 25th, 2010, 04:09 PM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 36,763
*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
Reply With Quote
  #7  
Old December 25th, 2010, 08:39 PM
email68 email68 is offline
Seer Master
 
Join Date: Aug 2009
Location: Northern CA
Posts: 732
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'
Reply With Quote
  #8  
Old December 26th, 2010, 12:03 AM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 36,763
Sorry it should be hs.setDeviceValue "$7", sTempVar
Reply With Quote
  #9  
Old December 26th, 2010, 01:09 AM
email68 email68 is offline
Seer Master
 
Join Date: Aug 2009
Location: Northern CA
Posts: 732
Quote:
Originally Posted by Rupp View Post
Sorry it should be hs.setDeviceValue "$7", sTempVar
That was it Rupp.

Thank you so much!

-Tim
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:52 PM.


Copyright HomeSeer Technologies, LLC