Skip to content

The PIR motion sensor remembers motions while timeouts

How to reproduce

  • Move in a bright environment into the motion detection circle
  • The motion should be detected, and the light level should should be to high, so we run into a timeout
  • Move while the timeout again into the motion detection circle
  • Wait for the current timeout to pass
  • A new motion is triggered directly after the last passed timeout

Acceptance criteria

  • The PIR motion sensor should not remember detections while a timeout is enforced

Tasks

  • Reset the PIR motion sensor in any case if the loop is early skipped (pirmtn_reset();)