X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=auto%2Fburrow-auto;h=b876223dae335efe839a193bb07c71600fa0d8db;hb=refs%2Fheads%2Fmaster;hp=7aaca0f74da5a77011c14007872a5987e2d2ae47;hpb=b5b6030611f2bd9adbe83a3e73d14ebe31c09fe2;p=home-hw.git diff --git a/auto/burrow-auto b/auto/burrow-auto index 7aaca0f..b876223 100755 --- a/auto/burrow-auto +++ b/auto/burrow-auto @@ -154,7 +154,9 @@ def auto_loft_fan(): lt = st.get_sensor_avg("temp/loft") out = st.get_sensor_avg('air/outside-intake') - if lt is None or out is None: + if False and st.hour in range(21, 24) or st.hour in range(6, 10): + fs = 0 + elif lt is None or out is None: fs = 0 elif st.hysteresis('lf_out_cold', out, 5, 6) < 0: fs = 0 @@ -249,7 +251,7 @@ def auto_aircon(): tii = st.get_sensor_avg('air/inside-intake') tie = st.get_sensor_avg('air/inside-exhaust') house_hot = st.hysteresis('ac_house_hot', tii, 23.5, 24) - outside_hot = st.hysteresis('ac_outside_hot', tie, 23, 24) + outside_hot = st.hysteresis('ac_outside_hot', tie, 24, 25) ac_on = ac_is_on() if house_hot > 0 and outside_hot > 0: