Good way to detect if we are sleeping

Yes: Withings Sleep Issues