Stable doorbell-off range fell for some reason. Cold weather?
authorLuke Hoersten <luke@hoersten.org>
Mon, 05 Feb 2018 20:56:12 -0600
changeset 13 684ac329e7da
parent 12 6f6c8df37897
child 14 1d79e73c881f
Stable doorbell-off range fell for some reason. Cold weather?
src/doord.py
--- a/src/doord.py	Tue Jan 30 21:53:20 2018 -0600
+++ b/src/doord.py	Mon Feb 05 20:56:12 2018 -0600
@@ -42,7 +42,7 @@
     analog_value = automationhat.analog.one.read()
     doorbell_on_state = 6.0 < analog_value and analog_value <= 6.22
 
-    if analog_value < 7.59:
+    if analog_value < 7.55:
         print("doorbell analog value: {}; ringing: {}; ring range: (6.0, 6.22]".format(analog_value, doorbell_on_state))
 
     if doorbell_on_state != thread_local.doorbell_on_state: