Number Cluster
This cluster delivers deliver a generic number value that can be bind to any type of measurement or calculated data depending on the firmware (sensor type). The type of the value is defined at compile time depending on the application use-case. It can be one of the following ones: U8, U16, U24, U32, SingleFloat, I8, I16, I24, I32 (see codes here).
This cluster manages also the "Statistics attributes" minimum, average and maximum values of the number since last reboot or statistics reset.
If a field of the payload starts with 0x, this means that it’s an hexadecimal representation, and if it starts with 0b, it is a binary representation.
Any multi-byte numerical value is serialized in “Big Endian” order.
Present Value Attributes The Present value information attribute contains the attribute representing the current value defined by the device application. Notice that the Present Value Attribute (0x0000) is the source of calculated attributes that keep currents Mean (0x0101), Minimal(0x0102) and Maximal(0x0103) values since startup or reset of the sensor. All these calculated attributes can be accessed the same way than the source one. Depending on the application selected data type, the batch sample type code is given by the following table: sample type table . ie: for an "unsigned int U16", the corresponding number to use in br_uncompress type is 6. Statistic Attributes These reportables attributes show the Minimal, Average and Maximum values of CO2 or VOC sensor since sensor startup or last "Reset statistics" cluster specific command. They can be read and reported in the same way than the "Measurement Attribute", by just changing the "Attribute ID" to the right one: Cluster specific commands Specific commands can be used to :Present Value
Standard report
Report
Features Fctrl CmdID ClusterID AttributeID Attribute type Data Comment
Report attributes 0x11 or 0x31 or
...0x0a 0x800E 0x0000 <Attribute Type Code (ATC) >
Application defined
0x... 0x...: Present value number. Number of bytes depending on ATC (from 1byte to 4 bytes).
Configuration
Features Fctrl CmdID ClusterID Payload Comment
Configure reporting 0x11 or 0x31 or
...0x06 0x800E 0x00 0x0000 <ATC>
0xmmmm 0xMMMM
0xcccc0x00: Reserved
0x0000: AttributeID
<ATC>: Attribute type(Application defined)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0x...: Reportable change value. Number of bytes depending on ATC (from 1byte to 4 bytes).
Configure reporting response 0x11 or 0x31 or
...0x07 0x800E 0xss 0x00 0x0000 0xss: status
0x00: Reserved
0x0000: AttributeID
Read reporting configuration 0x11 or 0x31 or
...0x08 0x800E 0x00 0x0000 0x00: Reserved
0x0000: attributeID
Read reporting configuration response 0x11 or 0x31 or
...0x09 0x800E 0xss 0x00 0x0000 <ATC>
0xmmmm 0xMMMM
0xcccc0xss: status
0x00: Reserved
0x0000: AttributeID
<ATC>: Attribute type(Application defined)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0x...: Reportable change value. Number of bytes depending on ATC (from 1byte to 4 bytes).
Read
Features Fctrl CmdID ClusterID AttributeID Status Attribute type Data Comment
Read attribute request 0x11 or 0x31 or
...0x00 0x800E 0x0000 Ask the current concentration indication
Read attribute response 0x11 or 0x31 or
...0x01 0x800E 0x0000 0x00 <ATC> 0x... <ATC>: Attribute type (Application defined)
0x...: Present Value. Number of bytes depending on ATC (from 1byte to 4 bytes).Batch report
Configuration
Features Fctrl CmdID ClusterID Payload Comment
Configure reporting 0x11 or 0x31 or
...0x06 0x800E 0x15 0x0000 0x00 0xmmmm 0xMMMM <Delta> <Resol> 0xtt 0x15: 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x0A.
0x0000: AttributeID
0x00: the index of required field( the MeasuredValue attribute has got only one field 0)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
<Delta>: required delta value. Number of bytes depending on application defined Attribute type of number (from 1byte to 4 bytes).
<Resol>: required resolution. Number of bytes depending on application defined Attribute type of number (from 1byte to 4 bytes).
0xtt: the tag value
Configure reporting response 0x11 or 0x31 or
...0x07 0x800E 0xss 0x01 0x0000 0xss: status
0x01: batch
0x0000: AttributeID
Read reporting configuration 0x11 or 0x31 or
...0x08 0x800E 0x01 0x0000 0x01: batch
0x0000: AttributeID
Read reporting configuration response 0x11 or 0x31 or
...0x09 0x800E 0xss 0x15 0x0000 0x00 0xmmmm 0xMMMM <Delta> <Resol> 0xtt 0xss: status
0x15: 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x0A.
0x0000: AttributeID
0x00: the index of required field( the MeasuredValue attribute has got only one field 0)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
<Delta>: required delta value. Number of bytes depending on application defined Attribute type of number (from 1byte to 4 bytes).
<Resol>: required resolution. Number of bytes depending on application defined Attribute type of number (from 1byte to 4 bytes).
0xtt: the tag value
Cluster commands
Features Fctrl CmdID ClusterID Payload Comment
Command: Reset statistics 0x11... 0x50 0x800E 0x00 Reset/restart MEAN|MIN|MAX calculations