Page 1 of 1

Wake on Lan

PostPosted: Sun Jan 20, 2019 7:15 pm
by ginganinja
Hi All,

Was struggling with performing WakeOnLan functionality from within Indigo and found something I think is worth sharing.

It starts with the following piece of software, that is my favorite price, free!!!

Download and install this on your Mac, now use their client software to test and troubleshoot your wake on lan functionality.

Once you get it working, you can then use Apple Script to call this app from within an Indigo Action Group.

Sample script:

tell application "WakeOnLan"
wakeup ""
end tell

The other nice thing about this software is that I did a network sniff and basically the approach is to try about 6-7 different types of WakeOnLan signals (wonderful thing about standards is that there is so many to choose from). So your chance of getting it working is quite good.

Let me know if you have any questions/concerns, would be glad to help out.

Re: Wake on Lan

PostPosted: Tue Jan 22, 2019 7:05 am
by DaveL17
Interesting. I don't have a need for this, but thanks for sharing.

Re: Wake on Lan

PostPosted: Tue Jan 22, 2019 11:08 am
by kw123
here a python version. No need to install anything
You can put this into an action script and replace MAC number with your device number and the IP number to your BroadCast # likely ends with .255 ( etc)
Code: Select all
import socket

def sendWakewOnLan(MAC,ipN):
   data = ''.join(['FF' * 6, MAC.replace(':', '') * 16])
   sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
   sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
   sock.sendto(data.decode("hex"), (ipN, 9))

ipBC= ""
mac = "12:34:56:78:AB:CD"
sendWakewOnLan(mac, ipBC)


Re: Wake on Lan

PostPosted: Wed Jan 23, 2019 8:16 am
by ginganinja
Thanks Karl!

Agreed, I would rather call it straight from an action group. I'll give this a try and let you know how it works out.


Re: Wake on Lan

PostPosted: Sat Jan 26, 2019 6:17 am
by kw123
Ps. Fingscan as well as UniFi plugins have ping and wol as options to manage up/ downs of ip devices build in.

Sent from my iPhone using Tapatalk

Re: Wake on Lan

PostPosted: Mon Jan 28, 2019 10:47 pm
by ginganinja

I test out your script and it worked great.

Thanks for the tip.

I will look into the other plugin's as well, but the script is pretty easy/fast.


Re: Wake on Lan

PostPosted: Mon Jan 28, 2019 11:04 pm
by ginganinja
Turns out that i already had winremote plugin installed and totally missed that it has wakeonlan, am using that now.