]> mj.ucw.cz Git - home-hw.git/commitdiff
Auto: Aircon tuning
authorMartin Mares <mj@ucw.cz>
Wed, 13 Jul 2022 15:05:03 +0000 (17:05 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 13 Jul 2022 15:05:03 +0000 (17:05 +0200)
auto/burrow-auto

index 077022dca6b61e8059fd80512536bc3f86402ac6..ce81f4a8c88262ac48657b1c37787332ec8d9fc2 100755 (executable)
@@ -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: