I wasn't convinced I could use the Automate app to completely lock my phone out of non-emergency apps during the night but it appears I did it so well that I might need to break out safe mode to get it out of it.