gustavo, yes this is correck to support the other type.
I only have 2 types at the moment. If you know other type, i will add them as well,
Or is there an oderway of finding out if the light support colors ?
The only other one I know of is "Color light" which is the bloom. I have all three types at my house - bloom, regular hue bulbs, and non-color hue bulbs (both the $12 GE Links and the $20 hue lux's). Your code works perfect with all of them when the single line fix I earlier suggested. E.g. if it's a Color light or Extended color light, treat it one way, otherwise treat it as a non-color light.
Thanks,
Gus