I have been playing around a lot with Siri Shortcuts on the iPhone. Recently I set up two shortcuts to use the SSH script in Siri Shortcuts to wake up my 2010 iMac and to also put it to sleep. It sends a terminal command over the ethernet port to wake up and sleep the Mac. It is really cool. Makes you feel like you are in the future.
Here is the video