DougEdey/SB_Elsinore_Server — pull request #35 by cmpterman2 (2014-11-23 21:30:28+00:00)
Title: Fix for heat not working, fixes for cooling and compressor based devices

Made it so that heat would work if only heat is on and there is no cooling (notice the II instead of && in PID). Also fixed the delay for cooling devices (was using hours, not minutes). Made it so that if a delay was set that it defaults to a compressor device, which seems logical if a delay is set. Also fixed initialization of cooling devices where cycle time wasn't getting set. Added some logic to output devices so that if zero time is set for off / on time that it won't cycle the device unnecessarily (IE, if heat is set at 100, then don't turn the heat off for 0 seconds which does cause things to turn off briefly)