@mvrlogins I had to add code to my module, that started a 14 minute timer on entering sleep mode. if motion happened before the timer expired the timer was stopped.
if the timer expired, I set a variable and then started the wake up routine.
during the wakeup, if the variable was set is started a second timer for 1 second
when that second timer expired I cleared the variable and then started the sleep routine again…
repeat as needed.
causes a short flash every 14 minutes, but mostly this happens at night, when u are sleeping anyhow.
energy star compliance requires power off (or low power suspend mode) after 15 minutes of no use.