HueSaturationComponent: {
    attributes: {
        currentHue: Attribute<number, any>;
        currentSaturation: Attribute<number, any>;
    };
    commands: {
        moveHue: Command<TypeFromFields, void, any>;
        moveSaturation: Command<TypeFromFields, void, any>;
        moveToHue: Command<TypeFromFields, void, any>;
        moveToHueAndSaturation: Command<TypeFromFields, void, any>;
        moveToSaturation: Command<TypeFromFields, void, any>;
        stepHue: Command<TypeFromFields, void, any>;
        stepSaturation: Command<TypeFromFields, void, any>;
    };
}

A ColorControlCluster supports these elements if it supports feature HueSaturation.

Type declaration

  • Readonlyattributes: {
        currentHue: Attribute<number, any>;
        currentSaturation: Attribute<number, any>;
    }
    • ReadonlycurrentHue: Attribute<number, any>

      The CurrentHue attribute contains the current hue value of the light. It is updated as fast as practical during commands that change the hue.

      The hue in degrees shall be related to the CurrentHue attribute by the relationship: Hue = CurrentHue x 360 / 254 (CurrentHue in the range 0 to 254 inclusive)

      If this attribute is implemented then the CurrentSaturation and ColorMode attributes shall also be implemented.

      MatterSpecification.v13.Cluster § 3.2.7.2

    • ReadonlycurrentSaturation: Attribute<number, any>

      The CurrentSaturation attribute holds the current saturation value of the light. It is updated as fast as practical during commands that change the saturation.

      The saturation shall be related to the CurrentSaturation attribute by the relationship: Saturation = CurrentSaturation/254 (CurrentSaturation in the range 0 to 254 inclusive)

      If this attribute is implemented then the CurrentHue and ColorMode attributes shall also be implemented.

      MatterSpecification.v13.Cluster § 3.2.7.3

  • Readonlycommands: {
        moveHue: Command<TypeFromFields, void, any>;
        moveSaturation: Command<TypeFromFields, void, any>;
        moveToHue: Command<TypeFromFields, void, any>;
        moveToHueAndSaturation: Command<TypeFromFields, void, any>;
        moveToSaturation: Command<TypeFromFields, void, any>;
        stepHue: Command<TypeFromFields, void, any>;
        stepSaturation: Command<TypeFromFields, void, any>;
    }
    • ReadonlymoveHue: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.5

    • ReadonlymoveSaturation: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.8

    • ReadonlymoveToHue: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.4

    • ReadonlymoveToHueAndSaturation: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.10

    • ReadonlymoveToSaturation: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.7

    • ReadonlystepHue: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.6

    • ReadonlystepSaturation: Command<TypeFromFields, void, any>

      MatterSpecification.v13.Cluster § 3.2.11.9