Allow to delay-lock buttons when sleeping

I've been using the device for 2 nights and as I was probably rotating in my bed, the button got hit. It woke me up with vibration and in statistics I can see monitoring stopped for about an hour until it resumed again. 

I think there should be an option which could either set a delay for button reactions or the possibility to lock them while in sleep