]> mj.ucw.cz Git - home-hw.git/commitdiff
burrow-auto: Meditation hack
authorMartin Mares <mj@ucw.cz>
Mon, 1 Apr 2024 10:18:17 +0000 (12:18 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 1 Apr 2024 10:18:17 +0000 (12:18 +0200)
auto/burrow-auto

index 05854307ba958759073e34e89f04083e2e7269d9..28b7c85b3f21f1fbf1f3165cf448a66ab994af4f 100755 (executable)
@@ -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 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