I’m pretty sure the SmartApp CoRE has this feature built in so that all you have to do is enter your mac address.
I wasn’t able to get WOL to work with my computer that’s wired so I came up with a different solution.
I used the free software EventGhost to create macros that perform actions like changing the volume, opening various applications and shutting down the computer.
I then changed the bios settings on my computer so that when power is restored the computer automatically turns on.
I have my computer plugged into a z-wave switch (Aeon Labs DSC06106-ZWUS - Z-Wave Smart Energy Switch) and I extended the generic device handler for it.
The on command turns on the switch causing the computer to start.
The off command uses EventGhost to safely shut down the computer and then once the power drops to 0 it shuts the switch off.
I added the Music Player capability so that the device handler can be used to Pause/Unpause shows on Hulu/Netflix and adjust the volume.
This device handler allows me to use my Amazon Echo with the Ask Alexa SmartApp to perform all those actions through voice commands.
I hadn’t planned on posting the code for this device handler, but I’ve added it to my GItHub SmartThings repository as “Generic Computer” in case anyone’s interested.
My TV doesn’t turn on automatically when given power so I had to create an IR transmitter using Arduino and the ThingShield to turn my tv and receiver on and off, but that’s a whole other project.