Good evening Dave.
Long time ago I have installed this sensor but never used it in interraction with other services.
Don't know if the method I used is a good method but worky great !
this is the code about pir and timer
https://github.com/MyRobotLab/inmoov/blob/master/InmoovScript/services/…
https://github.com/MyRobotLab/inmoov/blob/master/InmoovScript/services/…
Wakeup / Sleep functions
https://github.com/MyRobotLab/inmoov/blob/master/InmoovScript/inmoovLif…