I need some help for the WOL integration in HA.
I have added this string in the configuration.yaml:
switch: - platform: wake_on_lan name: PC-Studio mac: D0:50:99:XX:XX:XX host: 192.168.0.36
and when i turn the switch on the PC will turn on but the switch turn back to OFF…
if i add this:
binary_sensor: - platform: ping name: PCStudio host: 192.168.0.36 count: 2 scan_interval: 30
the binary sensor work well.
I think there is a problem with the Ping in the WOL… some suggestion?