X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=track-presence.py;h=c71be1544e92d6c441415aa89a5460fd03ee9322;hb=afb9a794cf6c52dd7ab07de3f147d17aee06f9d8;hp=9f0aa66d1bced0562c43ca0c5352b6c12c7cb7bd;hpb=4022120de2abcbd8f71f199e2cb2d9fd73a05680;p=svn42.git diff --git a/track-presence.py b/track-presence.py index 9f0aa66..c71be15 100755 --- a/track-presence.py +++ b/track-presence.py @@ -321,6 +321,7 @@ class StatusTracker: #(threading.Thread): self.lock.acquire() self.door_open_previously = self.door_open self.lock.release() + loggin.debug("doorOpen: open: %s, who: %s, how:%s, manual_switch: %s; physically_present: %s" % (self.door_open,self.door_who,how,self.door_manual_switch_used,self.door_manual_switch_used)); def doorClosed(self,who,how): self.uwscfg.checkConfigUpdates() @@ -337,6 +338,8 @@ class StatusTracker: #(threading.Thread): self.lock.acquire() self.door_open_previously = self.door_open self.lock.release() + loggin.debug("doorClosed: open: %s, who: %s, how:%s, manual_switch: %s; physically_present: %s" % (self.door_open,self.door_who,how,self.door_manual_switch_used,self.door_manual_switch_used)); + def movementDetected(self): self.uwscfg.checkConfigUpdates()