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
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
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 execution

  • device (st.zigbee.Device) – The device this message was received from containing identifying information

  • command (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 execution

  • device (st.zigbee.Device) – The device this message was received from containing identifying information

  • command (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 execution

  • device (st.zigbee.Device) – The device this message was received from containing identifying information

  • command (CapabilityCommand) – The capability command table