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
  switches:
    controller_001:
      friendly_name: Rocket Launcher Back Yard
      unique_id: controller_001_001
      command_on: >
        curl -X POST "http://10.11.12.13/test" -d '{"action":"on"}'
      command_off: >
        curl -X POST "http://10.11.12.13/test" -d '{"action":"off"}'

Works fine:

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

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

Hoping someone can hint

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

You will have to set the icon using customize.