Color Control
- class st.zigbee.defaults.colorControl
- zigbee_handlers: table
- attribute_configurations: table
- capability_handlers: table
- static color_hue_handler(driver, device, value, zb_rx)
Default handler for the current hue attribute on the color control cluster
This converts the Uint8 value of the current hue attribute on the color control cluster to ColorControl.hue
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationvalue (
st.zigbee.data_types.Uint8
) – the color control current hue valuezb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in
- static color_sat_handler(driver, device, value, zb_rx)
Default handler for the current saturation attribute on the color control cluster
This converts the Uint8 value of the current saturation attribute on the color control cluster to ColorControl.saturation
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationvalue (
st.zigbee.data_types.Uint8
) – the color control current saturation valuezb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in
- static set_color(driver, device, command)
Default handler for the ColorControl.setColor command
This will send an on command to the on off cluster, followed by a move to hue and saturation command to the color control cluster
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationcommand (
CapabilityCommand
) – The capability command table
- static set_hue(driver, device, command)
Default handler for the ColorControl.setHue command
This will send an on command to the OnOff cluster, followed by a move to hue command to the color control cluster
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationcommand (
CapabilityCommand
) – The capability command table
- static set_saturation(driver, device, command)
Default handler for the ColorControl.setSaturation command
This will send an on command to the OnOff cluster, followed by a move to saturation command to the color control cluster
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationcommand (
CapabilityCommand
) – The capability command table