I have a switch for pc management in configuration.yaml
wake_on_lan:
switch:
- platform: template
switches:
pc:
value_template: "{{ is_state('binary_sensor.pc', 'on') }}"
turn_on:
service: wake_on_lan.send_magic_packet
data:
mac: 2c:f0:5d:79:af:cb
broadcast_address: 192.168.255.255
turn_off:
service: shell_command.disable_pc
turning off the PC works fine, but there is no turning on. moreover, if you run the command wake_on_lan.send_magic_packet
in the developer panel, then everything seems to work.
What is the problem?