Help transforming from -switch to -command_line config option

I have this today:

switch:
  - platform: wake_on_lan
    name: WOL NAS01
    mac: xx-xx-xx-xx-xx-x
    host: 192.168.1.130
    turn_off:
      service: shell_command.turn_off_nas01

shell_command:
  turn_off_nas01: ssh -i /config/.ssh/id_rsa -o 'StrictHostKeyChecking=no' [email protected] "poweroff"

Since the upgrade I get complaints that this need to be moved to command_line. So I tried to do it like this:

command_line:
  - switch:
      name: WOL NAS01
      mac: 24-5E-BE-5F-FA-49
      host: 192.168.1.130
      turn_off:
        service: shell_command.turn_off_nas01

But it complains that “mac” is not a valid option for command_line.
I assume that I need to convert this to use wake_on_lan instead, but I do not know how since my competence with YAML in HA is limited.

Anyone who can help me on how to convert from the old use of -switch to the new required -command_line option?

I don’t think wake on lan is a command_line platform.

Do you have any other platform: command_line