Motion sensor in automation trigger once during a period of time

If you’re still considering options this post can be of use, too.