Auto ShutDown! Which setting or addon?

Is there any Option to shutdown the system after some inactivity?

This would help me a lot , when i leave home and for example slept in front my Tv.

Waiting your helpfull answers guys.

All Kodis can do this. Look in Settings/System.

Turn-off screen saver has power options. That might work for you.