How to control CE completely from your mobile phone (incl. remote wakup)

I’m not sure shutting down CE via power supply all the time is a good plan.
It’s not the same as a safe shutdown via Shutdown menu/Remote control or SSH via something like the Juice APK.