HSColourSetTransformer(uuid?: string, defaultValue?: TColorData)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
HS color setting protocol converter for bidirectional conversion between HS color values and the Zigbee DP protocol format
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string | No | DP identifier, defaults to 'hs_color_set' |
| No | Default HS value, returned when parsing fails |
Return Value
Type: HSColourSetTransformer
HSColourSetTransformer instance
Methods
| Method | Description |
|---|---|
| parser | Parse a DP hexadecimal string into an HS color value object |
| formatter | Format an HS color value object into a DP hexadecimal string |