Auto reboot option – Timer

I ve been searching for a while to find a solution to automaticaly reboot raspberry pi, after some period of time beeing unactive.

My setup:
– berryboot (OPENELEC-Kodi + OPENMEDIAVAULT-Debian based NAS)
– Primary OS is Openmediavault, for Samba/CIFS
– Ocassionally using Kodi for media

I would like to have Openmediavault running all the time when Kodi is not in use. So if i forget to manualy reboot Kodi after watching media, i want system doing it automatically. Let say in 1 hour after being idle.

I tried different scenarios without luck.

Maybe some of you have a solution?
– implementation of “Kodi Callbacks” plugin or “Sleep Timer” plugin?

Thanks!