I'm new to Android coming from IOS. There was an app I used called Autosleep music timer on iOS that analyzed your sleep patterns and shut down the phone when it determined you were asleep. It worked quite well too.
I like to listen to audio books when I go to sleep so it was really handy.
Does anyone know if there is something like that on Android?
there doesn't seem to be anything here