I've gone over SEVERAL posts on the board...
Found scripts that others have been nice enough to post as examples, but have been broken in HS2 (ex. set and let no longer supported). I'm not a programmer; however, I do try to make sense of what others have done. So, your help is appreciated
I've managed to get the following working without errors in the log as a .txt file.
sub main()
dim rcs
set rcs=hs.plugin("RCS Serial Thermostats")
dim temp1
temp1=rcs.GetTemp(1,0)
end sub
The goal here is to pull the outside temp from my RCS Thermostat. This information is already displayed on the status page via my RCS Thermostat; however, when setting up an event I don't see any option to allow trigger or condition using the outside reading... maybe an oversight in the plugin.
Having read the other posts I assumed the outside temp was at (1,0).
Once I have the temp where I can include it in events I can then include information from my Z-wave indoor humidity sensor to trigger an outlet that controls our HVAC humidifier and also trigger the HVAC fan via the RCS Thermostat.
I've already attempted to include the above script in a recurring 30 min event; however, I don't see any results that I can trigger off of. I've run the event, screen refreshes, and the log includes:
12/16/2009 11:52:28 PM Event Event Trigger "OutsideTemp"
12/16/2009 11:52:28 PM Event Running script in background: OutsideTemp.txt
I'm not sure if I'm doing this correct or not. I've read several posts were the responder assumes we all understand what they are thinking or maybe there is alot of offline stuff going on that is not posted. :: shrug ::
However, there seems to be several good ideas posted but no documentation to the solution or to help prevent all the multiple posts for the same type of question(s). Such as, how to setup a virtual device and have it populated with information from this script? (In laymen's terms... need to crawl, before I walk)
The logic I'm looking to include via script or by using the events is similar to below chart.
If anybody can help it is appreciated... I am trying.
Thanks,
Chad
=============
humidity <= 15 (0...15000) AND
Outdoor <= -20 (-2500...-2000) OR
humidity <= 20 (0...2000) AND
Outdoor <= -10 (-1900...-1000) OR
humidity <= 25 (0...2500) AND
Outdoor -9 < 9 (-900...900) OR
humidity <= 30 (0...3000) AND
Outdoor 10 < 19 (1000...1900) OR
humidity <= 35 (0...3500) AND
Outdoor 20 < 29 (2000...2900) OR
humidity <= 40 (0...4000) AND
Outdoor 30 < 50 (3000...5000)
Turn Humidifier switch ON
Turn HVAC Outside Air Damper/Vent OFF
Turn HVAC Fan ON
=================
OutdoorTemp InDoor Humidity
-20 15
-10 20
0 25
10 30
20 35
30 40
For this task I'm using:
HS2 (2.4.0.3)
HSPI_RCSSERIAL.dll 2.4.0.2
RCS ZCV4 connected via RCS 232 to 485 serial hub and two zone controllers
HM-TS001
Found scripts that others have been nice enough to post as examples, but have been broken in HS2 (ex. set and let no longer supported). I'm not a programmer; however, I do try to make sense of what others have done. So, your help is appreciated
I've managed to get the following working without errors in the log as a .txt file.
sub main()
dim rcs
set rcs=hs.plugin("RCS Serial Thermostats")
dim temp1
temp1=rcs.GetTemp(1,0)
end sub
The goal here is to pull the outside temp from my RCS Thermostat. This information is already displayed on the status page via my RCS Thermostat; however, when setting up an event I don't see any option to allow trigger or condition using the outside reading... maybe an oversight in the plugin.
Having read the other posts I assumed the outside temp was at (1,0).
Once I have the temp where I can include it in events I can then include information from my Z-wave indoor humidity sensor to trigger an outlet that controls our HVAC humidifier and also trigger the HVAC fan via the RCS Thermostat.
I've already attempted to include the above script in a recurring 30 min event; however, I don't see any results that I can trigger off of. I've run the event, screen refreshes, and the log includes:
12/16/2009 11:52:28 PM Event Event Trigger "OutsideTemp"
12/16/2009 11:52:28 PM Event Running script in background: OutsideTemp.txt
I'm not sure if I'm doing this correct or not. I've read several posts were the responder assumes we all understand what they are thinking or maybe there is alot of offline stuff going on that is not posted. :: shrug ::
However, there seems to be several good ideas posted but no documentation to the solution or to help prevent all the multiple posts for the same type of question(s). Such as, how to setup a virtual device and have it populated with information from this script? (In laymen's terms... need to crawl, before I walk)
The logic I'm looking to include via script or by using the events is similar to below chart.
If anybody can help it is appreciated... I am trying.
Thanks,
Chad
=============
humidity <= 15 (0...15000) AND
Outdoor <= -20 (-2500...-2000) OR
humidity <= 20 (0...2000) AND
Outdoor <= -10 (-1900...-1000) OR
humidity <= 25 (0...2500) AND
Outdoor -9 < 9 (-900...900) OR
humidity <= 30 (0...3000) AND
Outdoor 10 < 19 (1000...1900) OR
humidity <= 35 (0...3500) AND
Outdoor 20 < 29 (2000...2900) OR
humidity <= 40 (0...4000) AND
Outdoor 30 < 50 (3000...5000)
Turn Humidifier switch ON
Turn HVAC Outside Air Damper/Vent OFF
Turn HVAC Fan ON
=================
OutdoorTemp InDoor Humidity
-20 15
-10 20
0 25
10 30
20 35
30 40
For this task I'm using:
HS2 (2.4.0.3)
HSPI_RCSSERIAL.dll 2.4.0.2
RCS ZCV4 connected via RCS 232 to 485 serial hub and two zone controllers
HM-TS001
Comment