Problem with Wake on Lan - Host parameter

Hi,

I have the following wake on LAN configuration. It is only working if I comment out the #host parameter. If the #host is in the config, it does not wake up my computer. If not there it wakes up, but I do not see the status nor can I turn off the computer (turn off part is not yet configured, planning to do it in a few days). Does anyone else have the same problem? Any idea what should I try? Thanks in advance!

Not working:

  - platform: wake_on_lan
    mac_address: !secret tankmac
    name: Tank
    broadcast_address: !secret tankip
    host: !secret tankip

Working but no status:

  - platform: wake_on_lan
    mac_address: !secret tankmac
    name: Tank
    broadcast_address: !secret tankip
    #host: !secret tankip

Is anyone else experiencing this issue? I am not sure if I do something wrong or it is a bug which I should report. Thank you!

Hi,

Just pushing up this problem, but it’s look there is a problem (maybe it’s a bug that need to be reported) with the service “wake_on_lan.send_magic_packet” : because if you try to use it by “call-service” action you can’t specify the host parameter that is not exposed.
The temporary solution is to declare the switch in the configuration yaml directly with the wake_on_lan … not really usefull, need to be done for each device, but it’s working …

wake_on_lan:
switch:
  - platform: wake_on_lan
    mac: xx:xx:xx:xx:xx:xx
    name: "WakeMeUp_Switch"
    host: xx.xx.xx.xx
    broadcast_address: xxx.xxx.xxx.255
    broadcast_port: 9

!!! switch need to be turn off and turn back on to work because only triggered when changed from off to on…

6 years later?
I guarantee you it is not the same problem, there may not be any of the same code in the code base that old for this function…
Please post a new message OR if you think it’s a code problem, post an issue.
Remember if something works but does not work the way you like, it is generally NOT a bug, but rather a Feature Request and in that case should NOT be written up as an issue. There is another thread for [FR] here.
Feature Requests - Home Assistant Community.

3 Likes