Jump to content

Programming question


Techman

Recommended Posts

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?

Posted

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

Posted

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.

Posted

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.

×
×
  • Create New...