WOL issue switching on

Hi everyone, i have an issue with WOL, the switch shows when the computer is on by making the lightning bolt being yellow and when the computer is off the lightning bolt being grey. Now i cant turn the computer on. what would the issue be? Bellow is the code that i use.

switch:
  - platform: wake_on_lan
    name: "RedLine"
    mac_address: "‎C1:C2:5A:2F:4D:BF"
    host: "10.0.22.21"

when i do use other apps to turn on my computer they work except home assistant. i have set the port to be wake on lan within device manager.
thanks for future reply’s

Did you ever solve this? I have the same issue. WOL works for Teamviewer and through my ASUS router’s built in WOL feature, but won’t work in HA.

But, like you said, the icon does show the computers on and off accordingly, it just won’t actually wake them.

Sorry, i never did sadly, i am able to use a third part app which works except for hass