Is there a way to switch PC ON Wake On LAN using Smarthub?

What could I use for my porpouse (WOL my PC) and for automation in general compatible with Alexa?
Thank you very much

That would depend on a lot of things…how you intend to automate things, the type of devices in your house, your ability/willingness to setup other devices (Raspberry Pi for example).
If you have android devices in your house, I believe you can use Tasker.

I use pretty much the same code I have here on my new hub, so I havent really explored the other options.

hello im trying to use your code but im getting this error when add to smartthings app, can you help me out?
it always says: error saving page when addding a smartapp
live logging goes like this:

groovy.lang.MissingMethodException: No signature of method: script_app_8d29913b8b5379d45c0a1b54baea0a15c96d6a2a6c54e6213fc6d72625cdb0b2.debut() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [updated with settings: [MyVButton:Botao DJ, macSet:00:58:18:78:9D:34]]

hello
im trying to use this but when i push the momentary tile button ive created nothings happens, i just can wol my pc, can you help me out?

I can’t speak for @psecto code. This is the latest version I wrote for ST that worked.

Is there a way to switch PC ON Wake On LAN using Smarthub?

I am no longer an ST user so my ability to assist will be very limited.

Remove all previous versions of the app. Install the code above and test. You would also need to ensure your pc is able to accept the magic packet and has the feature enabled (usually in the BIOS).

Good Luck
Stephan

hello

i have installed it again and it works just fine

thanks for your time :slight_smile:

Hi there,

I’ve created a smartapp, device handler and a step-by-step guide on how to setup wake on lan on the SmartThings platform. Please go to https://github.com/sergiobaiao/SmartThingsPublic/tree/master/wakedevice

3 Likes

Brilliant work Sergio! Worked a treat first time, thank you!

My response has nothing to do with Wake on Lan, but it it looks like this WOL solution is a lot of work.

My solution was a bit simpler. I connected my computer power to a SmartThings SmartPower outlet and set the computer’s BIOS to turn the computer on when AC Power was restored. So, I just toggle the SmartPower outlet for the computer off for a few seconds, then back on, and the computer turns itself on since AC power was just restored. Of course to do this the computer must have a BIOS that supports the feature for Power On when AC power is restored. Also, I have the SmartPower outlet connected to a UPS so that the computer won’t come on when there is a power outage.

I use the same method. If your smart power outlet reads energy consumption you can have it toggle itself off after the computer shuts down so you don’t have to toggle it every time to turn it on

There’s also a WOL in webCoRE…I use WOL for the PCs that are hardwired simply because it’s much quicker to resume when using sleep and a ping vs having to boot up from a cold start and one less device (Outlet) to manage.

Yeah I think that’s the proper way to do it :+1:

1 Like

Worked great since the first try :slightly_smiling_face: I used a virtual alexa button as the trigger, so I can turn my NAS on via voice too.

Hello Sergio,
Thanks for sharing the code. After following your instructions I did try for my PC but didn’t work.
So I made a small change to your wakedevice.groovy code. In the createWOL(evt) function, added my MAC address at 3rd line with no ā€œ:ā€. This is as per docs.smartthings.com. Example: ā€œwake on lan 0123456789abā€
Now it works perfectly fine!