Wake on LAN: there is no way to specify interface

Description:
In the “Wake on LAN” integration there is no option to select a specific network interface for sending the WoL packet. When the Home Assistant server has more than one network interface, there is no way to specify which interface should send the WoL packet.

However, the underlying Python module used by this integration supports this feature via the interface (IP address) parameter of the send_magic_packet method. It would be great if this option were exposed in the integration to allow users to specify the network interface.

Steps to Reproduce:

  1. Set up Home Assistant on a device with more than one network interface.
  2. Use the “Wake on LAN” integration to wake device connected to a network other than the primary one.

Expected Behavior:
There should be an option to select the network interface (IP address) through which the WoL packet will be sent.

Fully understand your request and voted for it. But not sure if it will be done, as more than one network interface doesn’t seem to be really an option on the favored implementation (basically HAOS).

1 Like

I also wondered if it was worth reporting, but for peace of mind, I decided to do it. The change itself is simple, and I don’t see how it could cause any chaos in HAOS. :slight_smile:

But HAOS does recognize multiple interfaces (like WLAN & NIC, or multiple VLANs, which admittedly, have to be set up via SSH)

Yes but it is not supported. Hence having to hack it via ssh, which isn’t baked into HAOS either.

Multiple physical interfaces seem to function without any need to touch with the command line, though.