@danz0219 my sleep wake depends on using the Linux motion project to signal motion. it supports just about every camera

the pi camera needs some additional system setup

https://motion-project.github.io/

I use webcams for my cameras