PIR sensor and sleep mode

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/C...
https://github.com/MyRobotLab/inmoov/blob/master/InmoovScript/services/C...

Wakeup / Sleep functions

https://github.com/MyRobotLab/inmoov/blob/master/InmoovScript/inmoovLife...