I use wol for my lg-webostv. And it works.
The sample data in the service uses lower case for the mac, and single quotes. Worth a try.
This is what I said before… I tried with every kind of quotas… Can you please show me your sample?
The quotas are not the issue, use all lowercase for the mac address.
Still not working
How do you run HA? Is the device you want to wake up in a different VLAN?
Both HA and PC are in the same LAN, same subnet, as the other devices (phone/tablet)… From any other devices, I can run WOL without problems, PC will turn on… from HA, no packet received…
Try this:
switch:
- platform: wake_on_lan
mac: '56:32:cc:11:12:12'
name: “WOL PC”
host: 192.168.0.2
broadcast_address: 192.168.0.255
Try also replacing the : with - in the mac address.
Still nothing I’ve tried even without broadcast address, or host… I made all the tests…
There is any way to see a log of running script, to see where is the problem?
This is my config - only differences are the order and i have no broadcast_address entered
switch:
- platform: wake_on_lan
name : “FrontRoomPC”
host: 172.22.1.132
mac: “C0-3F-D5-63-23-54”
Do you see no errors under Configuration -> Logs?
No error
Did you try with - instead of : as well?
Like in the example above from Marc_Pearman?
Ok, I have solved the problem :))) You won’t believe it… I have unplugged the PI from electricity and back again… seems that it was a stop somewhere…
Had you perhaps forgotten to restart HA after setting up the yaml - and every time you changed the yaml?
No, never Thats why I have so stuned… I always restart HA after I make changes to yaml… But now, seems that was needed a hardware restart… dunno why…
Could you please share your config please? I am struggling with similar issue 🥲
I don’t use WOL anymore, for long time
Old thread but i wanted to re add WoL in Home Assistant today and ran into some issues myself.
I didn’t need to use any quotes, maybe its bad practice and if so please tell. Note that i already had my machines configured for Wake on Lan (which seems to be off by default in at least all my machines BIOS settings)
I also use the add-on “RPC Shutdown” as i want the ability to shut down my Windows machines
Here are the entry in my configuration.yaml with RPC Shutdown
wake_on_lan:
switch:
- platform: wake_on_lan
name: a_name_for the_pc_in_lovelace
host: 192.168.0.99
mac: c2:35:2d:46:bb:cc
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: the_pc_alias_in_RPC_Shutdown
The following are the stuff that you need to match your system, i changed the for this post
- name: a_name_for the_pc_in_lovelace
- host: 192.168.0.99
- mac: c2:35:2d:46:bb:cc
- input: the_pc_alias_in_RPC_Shutdown
Here are the entry in my configuration.yaml without RPC Shutdown
wake_on_lan:
switch:
- platform: wake_on_lan
name: a_name_for the_pc_in_lovelace
host: 192.168.0.99
mac: c2:35:2d:46:bb:cc