Thanks for that mglae
When I initially looked at the Kodi Power Saving options they didn't seem to cover the requirement completely, but having looked a bit more closely I think I can make it work for me if I can combine it with a suitably modified Idle Shutdown Script script.