this post was submitted on 08 Feb 2024
11 points (92.3% liked)

homeassistant

12072 readers
2 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
11
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

I have an HAOS-VM running on a machine attached to my router via cable, and another (wifi attached) machine that I want to WoL from HA.

Apparently, my router does not forward WoL packets from wired ethernet to wifi, so I just plugged in a usb-wifi dongle and connected HAOS via the dongle - wifi works, no problem.

WoL in general also works, I can wake the machine up from my MacBook without a problem. I can also use the very same dongle on a Debian desktop to send WoL packets.

However, doing it from HA fails. My configuration.yaml looks like this:

wake_on_lan:
switch:
  - platform: wake_on_lan
    name: wake_<machine>
    mac: <mac>

I tried deactivating the KVM brigde, so that the VM really only connects via wifi, but no changes here either.

There are no errors in any logs, so it doesn't look like it's failing per se.

To me it looks almost like the packet is send to nirvana, but there's no way to configure the network interface in the WoL platform either.

Update

I kind of got everything to work, albeit in a rather weird way.

There already is a built-in WoL Service, accessible via the GUI, however, I have to use the Advanced Mode to access it, otherwise it simply doesn't show up. Using that service and the proper broadcast address, I'm now able to wake the target machine via a button. What's a bit concerning to me is that the "advanced mode" toggle seems to be lost after a reboot. I get a warning, that the WoL service couldn't be found, that only resolves after setting the advanced mode off and on again - that's rather stupid.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 9 months ago

I updated the post with an 80% solution.