Skip to content

ModernExtend does not respect limited color mode capabilites for light endpoints #11344

@xLerate

Description

@xLerate

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions