I have Home Assistant on a Docker container with it’s own IP address using macvlan. It’s also on a different subnet, 10.0.10.0, instead of the server and pc I want to turn on subnet, 10.0.0.0.
My UniFi router blocks inter-vlan routing and I’ve added a firewall exception to allow 10.0.10.4 (HASS) to 10.0.0.10 (PC) communication.
The only was I found that permits WoL in this scenario is to change the broadcast_address
to the PC’s IP address. The broadcast address 10.0.0.255 doesn’t work.
- platform: wake_on_lan
name: "PC"
mac: "aa:bb:cc:dd:ee:ff"
broadcast_address: 10.0.0.10
turn_off:
service: shell_command.pc_sleep
This seems to work. However, when I wake up the next day and try to turn on the PC from this, there’s no response. I am completely lost with this and can’t find out the reason it behaves like that.
Did anyone have this issue? Also, is there a way of making host: 10.0.0.10
work in this scenario so HASS knows if the PC is on or off?