Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Control on Outside Inside Temperature Difference

Featured Replies

Posted

I would like to turn a whole house fan on when the temperature outside is lower by 5 degrees than inside. So if the outside is 75 degrees and inside is 80 I want the fan to turn on. But I also want the fan to turn on if outside is 87 and inside is 92 (for example) so I really need to control the fan on the difference of the temperatures. Also, I want to turn the fan off if the temperature outside and inside is within 2 degrees.

 

Is there anyway to calculate a temperature difference and turn things on or off? I'm new at this. Are variables something that could be used?

Hi sbrink,

 

Unfortunately you cannot yet assign status values to variables. This is something we are working on for our 5.x version.

 

If you have certain temperatures in mind, you can have multiple programs for those temperatures and when status variables are available, then you can replace the logic.

 

With kind regards,

Michel

Unfortunately you cannot yet assign status values to variables. This is something we are working on for our 5.x version.

 

Great to hear! I'll refrain from asking how long, I know better. :) Is this likely to include arithmetic on variables?

By arithmetic you mean more than

Assign        $x  = a
Add           $x += a   
Subtract      $x -= a
Multiply      $x *= a
Divide        $x /= a
Remainder     $x %= a
And (binary)  $x &= a
Or (binary)   $x |= a
Xor (binary)  $x ^= a 

store the result of :

 

x-y in z

x+y in z

 

Program conditions,

If x-y > z then...

 

Etc etc..

 

Especially where one or more operators came from module output from modules like weatherbug or irrigation - or even the current light level of a dimmer, light level etc etc.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.