I’ve been trying to use the wake on lan switch. I can see the wake on lan switch sending the magic packet over my network, but it seems like it isn’t sending it directly through the ethernet connection between the pi and my pc’s ethernet port. Has anyone been able to get the wake on lan component to use eth0 to send the packet? My pi uses wlan0 to connect to the internet.
To clarify, you have the pi setup with 2 different networks?
Are you using the broadcast_address option to set what subnet it should use?
The wake on lan component relies on wakeonlan to send the package with UDP. You can’t however specify an interface. That’s why i resorted to using etherwake with the command_line switch.
- platform: command_line
switches:
wakeup:
friendly_name: Start Desktop
command_on: 'sudo etherwake -i eth0 XX:XX:XX:XX:XX:XX'
Pi is connected to the internet using wlan0, it is connected to my pc’s ethernet port through the pi’s eth0.