When I go to bed I use my smartphone to listen to something soothing and I fall asleep. It usually takes less than an hour.
Im looking for an application that turns the device off after one hour, pretty much like the sleep command works (on linux):
sleep 60m && shutdown now
alternatively, your ways to save as much battery as possible after the hour passes (won’t use the device for the next 8 hours)
On a rooted device or with adb you can execute the command:
sleep 60m && reboot -p