I have tried colorControl, ColorControl, colorcontrol, Capability.ColorControl, Capability.colorcontrol and Capability.colorControl
I see no reason why it would be anything other than ColorControl though, since the argument is a strong, and should be the name of the capability, and the snippet of code to print all capabilities for the device prints ColorControl for both the Capability’s name property, and the toString() method.
Not saying it isn’t what I am passing in, but that I can figure out what it could possibly be that I need to pass in
Wasn't where I could check, but when I dump the properties it is reported as ColorControl. I always have to check as I tend to use a lower case start with camel case.
Thank you for confirming this works. And I am truly stumped now. I provided the code, that I was using (sans the if block) and it was failing to process correctly. I added the logging that you showed, and it worked, so I uncommented my if, and it is working now. I have no idea what was going on last night. Maybe I was just too tired.
Sorry to waste your time just to confirm this works. I should have done better.