If I go to scripts and add a call service (wake_on_lan.send_magic_packet) with the Service Data:
mac: ‘56:32:CC:11:12:12’
broadcast_address: 192.168.0.2
broadcast_port: 9
My computer will not turn on.
Now, the WOL it is working flowless from other devices. I can turn on my PC from phone, but I want to do it from Home Assistant.
The TEST: I have opened an WOL Listner on my computer and from any other devices, I can receive magic packets on my computer, but if I run the script from HA, there is no magic packet received…
Where I get wrong? How can I make WOL working from HA?
Edit1: I have even tried without “broadcast_address or broadcast_port”, still not working
I have, but when I add double quotas, and save the script, after page refresh, the mac is with single quotas…
Anyway, I tried with double, single, no quotas, but it is not working. And not only from scripts, I tried from the Developer > Services > Service data… Still nothing.
Do you use WOL now with some settings or you just “redirected” me to “see the docs” without using it? I have seen the docs before I opened this topic…
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…
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”