]> mj.ucw.cz Git - home-hw.git/blobdiff - auto/burrow-auto
Auto: Broadcast computed AC state
[home-hw.git] / auto / burrow-auto
index 297772ab6e283f5abcb3ee60c2177ef7b7392243..7aaca0f74da5a77011c14007872a5987e2d2ae47 100755 (executable)
@@ -238,6 +238,11 @@ def auto_air():
 
     debug("Air: house_warm={} house_hot={} ac_on={} outside_warmer={} mixed_warmer={}".format(house_warm, house_hot, ac_on, outside_warmer, mixed_warmer))
 
+    if ac_on != 0:
+        st.set("air/ac-on", "{} {}".format(1 if ac_on > 0 else 0, int(st.now)))
+    else:
+        st.set("air/ac-on", "")
+
 
 def auto_aircon():
     global st