I'm using a smart plug that I can turn on via curl from a script of from its web server from my phone. However sleep to RAM has some advantage. I already entered the wake on demand rabbit hole and stopped at the first hurdles. Maybe I'll try again with the experience of this post.