If a device only supports x/y color mode and not h/s color mode and i want to exclude this in a external converter via color-attribute (using lumiLight just as example its extend modernExtends light):
lumiModernExtend.lumiLight({
colorTemp: true,
deviceTemperature: false,
powerOutageCount: false,
color: {modes: ["xy"]},
endpointNames: ["rgb"],
}),
the associated meta-attribute supportsHueAndSaturation is not set to false explicitly. (It is only set to true if hs is found in the color modes array (see lib/modernExtend.ts line 1233 ff.).
This leads the "light_color" converter (convertes/toZigbee.ts line 63 ff.) suppose that color mode h/s is supported and tries to send this command, which ends up in a "UNSUPPORTED" message from the device instead of throwing an exception.
There are two options to improve this:
If a device only supports x/y color mode and not h/s color mode and i want to exclude this in a external converter via
color-attribute (usinglumiLightjust as example its extend modernExtendslight):the associated
meta-attributesupportsHueAndSaturationis not set tofalseexplicitly. (It is only set totrueifhsis found in the color modes array (see lib/modernExtend.ts line 1233 ff.).This leads the "light_color" converter (convertes/toZigbee.ts line 63 ff.) suppose that color mode h/s is supported and tries to send this command, which ends up in a "UNSUPPORTED" message from the device instead of throwing an exception.
There are two options to improve this:
light_color-converter