- Create a Virtual Switch and set the auto-off to 1 sec (it essentially acts as a momentary switch).
- Install the app below.
- Select the Momentary switch you just created.
- Enter the Mac address (no spaces, dashes or colons) of the device you want to WOL.
Now you can add this switch to any automatons you need... eg when I open my office door, the lights come on and my pc wakes from sleep.
See link to app code below: