Help in configuration wake on lan switches.yaml noob

- platform: wake_on_lan
  name: "Roon ROCK"
  mac: 1c:69:7a:a6:0b:be
  turn_off:
    service: shell_command.turn_off_roon_rock

  shell_command:
  turn_off_roon_rock: curl http://192.168.2.2/1/poweroff

here my code… and the error:

Invalid config for [switch.wake_on_lan]: [shell_command] is an invalid option for [switch.wake_on_lan]. Check: switch.wake_on_lan->shell_command. (See ?, line ?).

someone can help me?
thanks

Your shell command is indented and hence it thinks it is part of the wake on lan config. Try unindenting it.

no it has error anyway