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.

Programming question

Featured Replies

Posted

I have a simple program that runs in a time slot and that turns on a bathroom fan if the humidity (reported from a wireless thermostat) exceeds a certain number and turns it off if the humidity goes below that number. The else line currently reads "else set bath fan off"

 

How can I also program the switch to turn on the fan manually and stay on until I manually turn it off thus overriding the above program?

I do this using a variable to determine if the fan was manually turned on or not. Something like this:

If 
  (  Control Bathroom Fan is Switched On
  Or Control Bathroom Fan is switched FastOn
  )
  And 
  (  Control Bathroom Fan is not Switched Off
  or Control Bathroom Fan is not Switched Fast Off
  )

Then
  $i.AutoFanDisable=1

Else
  $i.AutoFanDisable=0

 

If 
  #s.BathroomHumid >= 65
  And i.AutoFanDisable=0

Then
  Set Bathroom Fan On

 

If $s.BathroomHumid < 65
  And i.AutoFanDisable = 0

Then
  Set Bathroom Fan Off

 

-Xathros

Xanthros' program should work beautifully (and thanks for sharing) but my question is, How are you reading the wireless thermostat / humidistat values via ISY? That's exactly what I've been hoping to do, but didn't know was possible. I formerly used HomeSeer with Oregon Scientific sensors and an RFXCom, and temp / humidity is my last frontier in terms of replacing it with ISY and my Elk. Thanks for any info you can share.

Ah - Makes sense - Thank You!

 

I keep hoping for some way to read remote temp / humidity sensors (like those from Oregon Scientific) into the ISY or the Elk. It's the last thing I need to eliminate a PC from my system.

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.