From: Martin Mares Date: Wed, 13 Jul 2022 15:05:03 +0000 (+0200) Subject: Auto: Aircon tuning X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ccdbd1393d0ca9661d96248160d3ef72b23b8175;p=home-hw.git Auto: Aircon tuning --- diff --git a/auto/burrow-auto b/auto/burrow-auto index 077022d..ce81f4a 100755 --- a/auto/burrow-auto +++ b/auto/burrow-auto @@ -219,8 +219,7 @@ def auto_aircon(): global st tii = st.get_sensor_avg('air/inside-intake') tie = st.get_sensor_avg('air/inside-exhaust') - # house_hot = st.hysteresis('ac_house_hot', tii, 24.5, 25) - house_hot = st.hysteresis('ac_house_hot', tii, 23, 24) + house_hot = st.hysteresis('ac_house_hot', tii, 23.5, 24) outside_hot = st.hysteresis('ac_outside_hot', tie, 20, 21) ac_on = ac_is_on() @@ -232,8 +231,8 @@ def auto_aircon(): if not hasattr(st, 'last_ac_change'): st.last_ac_change = st.now - if st.last_ac_change >= st.now - 600: - action = "wait" + if st.last_ac_change >= st.now - 300: # FIXME: Increase + action = f"wait({st.now - st.last_ac_change})" elif ac_on == 0: action = "need-data" elif ac_on != want_ac: