I have the exact same issue u had.
My code in another installaition works, 2 months ago in mine installation works too but now no more.
No switch is getting created.
If you followed the official guide and it doesnât work, then is there any chance you are putting the wrong mac address? Some people mix up their wifi mac vs lan, etc.
For me I only have the following in the configuration.yaml and the switch comes up under Entities as âswitch.wake_on_lanâ and it works fine.
Even if u put a wrong mac, on a new installation, the switch is created but in my current installation it didnât even create the switch at all.
The problem is soo strange even after all the update of those days nothing changed same issueâŚ
This is really frustrating!!!
I googled for âHome Assistant Wake on Lanâ and this is one of the places I was referred to.
I did get mine to work. I followed a youtube video from 2021.
My system is slightly different than his. I have x86-64. On linux, windows, or rpi it might be slightly different. But it did work.
As far as the button not being automatically created: If you are using a new installation, widgets are automatically placed on the overview page. If you made changes to the overview page, it no longer automatically creates stuff. As shown in the video, just edit the overview page, and add a button. I hope that helps.
I didnât like the way the switch looked, because it was acting as a switch with an âonâ and an âoff.â
Also, I only want to turn on the computer, and not turn it off.
I really wanted a momentary push button.
So, I went into the overview page, and edited the page. (using the gui) On the WOL card, I changed the entity to blank, and changed the tap action from toggle to call service. And the service to call was âWake on Lan: Send Magic Packetâ It required that I put in the mac address. Works fine. I also deleted the switch section that says wake on lan. I still have the âwake_on_lan:â in my config.yaml
For all the people that had the issue of the switch not showing, the thing that solved my issue, was restart home assistant. But do full restart, not âQuick reloadâ. After quick reload nothing was shown as entitie, but after full restart, i can see it.
The issue I am having is that one of my PC switches shows up like all the others, but it showing unavailable and grayed out, despite being defined identically to all of the others, implying that WoL is unable to ping it for status, but I can ping it manually from a Terminal screen just fine. Not sure if something needs to be configured on the PC end, but if a ping is working, and the WoL documentation implies that ping is what it uses to determine the switch state, I donât see what would be.
This one actually took me a while to find out! I would like to contribute to whoever still finding out the solution.
Add the below code to your configuration.yaml, I used File editor in Addons to edit my configuration.yaml. You will need to define the host, mac address and broadcast_address accordingly. Leave everything else the same.
the 192.168.0.255 is usually at the end of the gateway of your current host IP address in my case it was 192.168.0.255 as a local gateway.
Make sure your TV has Wake on LAN turned on. I tested working by downloading a free WOL app from my App Store, or Play Store (whichever you use).
Turn off your Raspberry Pi or whichever devices you use.
Now go to Overview > Edit dashboard > select Button > and choose the Entity of LG_TV_WOL, tick Show Name, State and Icon. choose Toggle in Tap action and SAVE.
Make sure your TV is off (of course, since this is a turning-on feature only) and now try to press on. I tried many steps but without any luck earlier. Hope it helps someone.