check pintu status

This commit is contained in:
2026-02-17 19:09:38 +07:00
parent 8232989bd5
commit 0337d35b42

View File

@@ -168,9 +168,9 @@ class FrigateCounter:
logger.debug(f"Received message: camera={camera_name}, type={event_type}, label={label}")
# Handle different object types
if label == "pintu-kiri-buka" and not self.timer_active:
if label == "pintu-kiri-buka" and not self.pintu_kiri_buka_detected:
self.handle_pintu_kiri_buka(camera_name)
elif label == "pintu-kanan-buka" and not self.timer_active:
elif label == "pintu-kanan-buka" and not self.pintu_kanan_buka_detected:
self.handle_pintu_kanan_buka(camera_name)
elif label == "karung" and self.timer_active:
self.handle_karung(camera_name, track_id)