Sleep with Me allows to shut down phone, turn off the WiFi, Bluetooth, stop music, stop radio or do whatever you like when you fall asleep.
The application is free. However it contains an advertisement in top part of the screen. On the Play Store you can also find a donation version. Buying it supports the application development.
Firstly, you have to set times when application works. Between this times (eg. 22:00-06:00) the application detects that if you use your device or not (during specified time you do nothing with phone). If not, android will start to vibrate. During 30-seconds vibration, you can light up the screen or shake the phone. If you do it, countdown will be repeated. If not, selected actions become execute.
Vibration pattern and shake strength are also available to set to.
If you want to help translate, email me.
Clean, working application.