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:

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