Illuminance Measurement

class st.zigbee.defaults.illuminanceMeasurement
zigbee_handlers: table
attribute_configurations: table
capability_handlers: table
static illuminance_attr_handler(driver, device, value, zb_rx)

Default handler for illuminance attribute on the illuminance measurement cluster

This converts the Uint16 value to IlluminanceMeasurement.illuminance in lux Based on formula described in ZCL reference - MeasuredValue = 10,000 x log10 Illuminance + 1

Parameters
  • driver (Driver) – The current driver running containing necessary context for execution

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

  • value (st.zigbee.data_types.Uint16) – the value of the illuminance attribute on the illuminance measurement cluster

  • zb_rx (st.zigbee.ZigbeeMessageRx) – the full message this report came in