- elif self.door_manual_switch_used and time.time() - self.last_door_operation_unixts <= float(self.uwscfg.tracker_sec_wait_after_manual_close):
- #start timer, checkPresenceStateChangeAndNotify after tracker_sec_wait_movement
- self.checkAgainIn(float(self.uwscfg.tracker_sec_wait_after_manual_close))
- elif not self.door_manual_switch_used and time.time() - self.last_door_operation_unixts <= float(self.uwscfg.tracker_sec_necessary_to_move_through_door):
- #start timer, checkPresenceStateChangeAndNotify after tracker_sec_wait_movement
- self.checkAgainIn(float(self.uwscfg.tracker_sec_necessary_to_move_through_door))
+ elif self.door_manual_switch_used and time.time() - self.last_door_operation_unixts <= float(self.uwscfg.tracker_sec_wait_after_close_using_manualswitch):
+ self.checkAgainIn(float(self.uwscfg.tracker_sec_wait_after_close_using_manualswitch))
+ return self.last_somebody_present_result
+ elif not self.door_manual_switch_used and time.time() - self.last_door_operation_unixts <= float(self.uwscfg.tracker_sec_wait_after_close_using_cardphone):
+ self.checkAgainIn(float(self.uwscfg.tracker_sec_wait_after_close_using_cardphone))