Wake on lan magic packet sent but PC does not turn on

Hi guys i ran into a weird issue. I’ve been using for a long time already a self developed app to control stuff in my home and i’m slowly migrating everything to HA. I have a python app that can turn on my PC by sending a magic packet WOL simply by

from wakeonlan import send_magic_packet
send_magic_packet('xx:xx:xx:xx:xx')

I enabled the WOL package in the configuration.yaml
and made a button that when triggered runs this automation

alias: PC Wake On LAN
description: ""
trigger:
  - platform: state
    entity_id:
      - input_button.wake_pc
condition: []
action:
  - service: wake_on_lan.send_magic_packet
    data:
      mac: xx:xx:xx:xx:xx
      broadcast_port: 9
      broadcast_address: 192.168.1.108
mode: single

As broadcast address i tried both my IP PC and 255.255.255.255 and i know for a fact that the magic packet is received by the PC because i used a sniffer app.

image

The following happens:

  • With broadcast address as the PC IP 192.168.1.108 the magic packet is being received
  • With broadcast address as 255.255.255.255 no packet is being received
  • Both cases don’t turn on my PC
  • My app that runs the python script works with no problem and the magic packet is literally the same

The HA installation is running on a synology NAS docker container so i was thinking there was a problem with this since the docker container have 172.x.x.x network. IDK.

Anyone ever faced this problem and found a solution ?