Wakeonlan not working

I can’t seem to get wake_on_lan switch to work. I installed hass in virtualenv (tutorial from site).
I have this config:
switch:

  • platform: wake_on_lan
    name: “the pc”
    mac_address: “74-D4-35-F7-06-5F”
    host: “192.168.1.3”
    I tried to launch wol from virtualenv and it works, but the switch just won’t wake up my pc. The scan is correct(it shows when the pc is on and off) but it just won’t send the wol package.

I assume from this you tried outside of HA (just the command line) and were able to wake the PC? Try changing the MAC address to XX:XX:XX:XX instead of XX-XX-XX. I think I have seen other use the - with no issue but worth a shot.

tried it every way with “:” with “-” without anything… it won’t work, still outside HA it works either way…

Hmmm, went and checked my config. Only difference in mine is I don’t have “” around my IP address for the host. That shouldn’t effect the WOL side of things though.

Are there any errors in your log?

Neah, it doesn’t matter, with “” without “” it’s the same :slight_smile: tried every every way before posting, didn’t want to bother anyone, but it bugs me… I went for (if anyone else gets stuck on this):

switch:
  platform: command_line
  switches:
    pc_on: #or whatever name
      command_on: 'wakeonlan -i host_ip_address mac_address'
      command_off: ' '
      friendly_name: 'the pc'

and it works, but it kinda bugs me why the HA wakeonlan won’t work for me thou.

I have the same problem I think for me it started around version 0.41 or so. I replaced the switch with a command line switch and this works.