started sleep detection integration