Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Help > How-To's

How-To's This area provides in-depth information on how to do something in HomeSeer or home automation.

Thread Tools Display Modes
Old March 27th, 2017, 02:14 PM
avenson's Avatar
avenson avenson is offline
Join Date: Sep 2003
Location: Westminster CO
Posts: 5
Conditional Compare < and > between two Temperature devices

GOAL: I want to automatically raise/lower the window shades in my house when there is heat from the sun entering the window - to warm the room in the winter.

CONDITION: I have Multisensors located at both sides of a window shade: 1) window glass side and 2) room side of shade. (also a Davis Vantage Pro Weather station outside)

LOGIC: The temperature of each sensor can be compared to each other to determine which "side" of the shade is warmer. If the "window glass-side" of the shade is warmer (greater-than function) than the "room-side" of the shade, then open the shade to let the heat in. (Vise-versa for night time)

REQUEST: Would prefer a menu to perform this function rather than a script.

PROBLEM: HomeSeer does not have a menu option to compare the delta (< and >) of two temperature hardware devices. It can only compare a <> temperature device against a "typed in" known temperature (or do a temperature range).
Since both of these installed temperature sensors are constantly changing all day long, the crossover point at which one sensor becomes warmer (or colder) than another sensor is never the same and this is important for optimizing window shades up and down on a solar heated home.

HISTORY: HS3 allows scripts for comparing two Multisensor values, but this script didn't work in HS2:
sub main()
' Compare Temperature <> for two MultiSensor temperatures and then trigger an event:

if hs.DeviceValueByNameEx ("Node 10 Z-Wave Window living room Outside Temperature") > hs.DeviceValueByNameEx ("Node 11 Z-Wave Window Living room Inside Temperature")then hs.TriggerEvent ( "IR Living room shade up" ):hs.Speak("Living Ro2om SHades down.")

end sub

Last edited by avenson; May 1st, 2017 at 01:07 AM. Reason: Add in a script that works as a substitute to a menu.
Reply With Quote
Old March 27th, 2017, 02:46 PM
spud's Avatar
spud spud is offline
Join Date: Jan 2012
Location: Canada
Posts: 5,123
have a look at the EasyTrigger plug-in, it has a trigger to compare 2 device values:
Reply With Quote


conditionalcompare, temperaturedelta

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New condition to compare time of last change of two devices jlrichar EasyTrigger Plug-In (3P) 0 January 17th, 2017 06:21 PM
How are temperature devices updated rprade UltraECM HSPI 5 March 27th, 2015 04:46 PM
Two Questions re: X10 devices and temperature gayste RFXCOM Plug-In (3P) 0 March 24th, 2015 11:23 AM
How can I compare the value of two devices in an event? BrettS HS3 / HS3PRO Discussion 4 March 5th, 2015 01:34 PM
Virtual Devices and conditional events weathrman1 HS2 / HSPRO 4 February 15th, 2009 08:17 PM

All times are GMT -4. The time now is 12:49 PM.

Copyright HomeSeer Technologies, LLC