COLOR_MAP can only be used in one command, and a quick test shows this to be true.
The color picker library used can support multiple instances on the same page, so with only "minor" changes we could have support for multiple instances.
I have a use-case for an addressable strip, where SetColor already is using Color Map, but it would be great to use it for color selection also for the individual pixel SetColor command, lets call it SetPixelColor. As it is now I use STRING and the color in RGB HEX for SetPixelColor. Not easy to use.
It would be great if we could get this feature, it would make color selection much easier and the command fields would be clearly color fields when used form other parts of HE.
I wonder if you could use JS to invoke the color picker for a second command. You can inject it (or even CSS) by using the command’s label (or description) field and adding a script. You’d just be able to use a map as your method’s parameter, and pass the generated map through.
Hacky, but it’d probably work. You could probably even inject a different color picker. I’ve played with this idea..
Speaking of CSS, I actually did build a little collection of methods to inject CSS to hide commands, state variables, Data fields as well as preferences and Current States. All dynamically and based on preferences and what is needed by the driver at the moment. This way I have a command to say basically hideCurrentState("switch") and it's gone...
Where I have found the most use of this is in a child driver for handling RGB + CT + Dimmers + Adressable LEDs and everything else light related while not needing multiple different child drivers. Also nice to have it for, is hiding the "Delete All Children" button in a parent driver so that it is not clicked too easily... To get it, a preference has to be first set. I use these CSS methods a bit here and there in my new Tasmota drivers to be able to run all types of devices using only one Parent driver and as few as possible of child drivers. I could probably have even fewer child drivers if I really wanted to, using this. All without having a crazily hard to navigate driver and still not having to sacrifice functionality.