Minimum deep sleep hours

Wake me up when deepSleep > 3h and currentState == lightSleep between 5am and 10am. I really need my sleep