Setting up command line switch as light and setting custom icon from yaml

I have a switch set up in config.yaml like this

- platform: command_line
      friendly_name: Rocket Launcher Back Yard
      unique_id: controller_001_001
      command_on: >
        curl -X POST "" -d '{"action":"on"}'
      command_off: >
        curl -X POST "" -d '{"action":"off"}'

Works fine:

However, I’d like to set the icon and make it a “lamp” like this:

I’ve done it in the UI, but I’d like to do it from yaml if at all possible.

Hoping someone can hint

  - platform: switch
    name: Light Name
    entity_id: switch.controller_001

You will have to set the icon using customize.