Simple Metering Like Cluster
This cluster has been implemented to manage devices that have an electrical metering sensor.
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.
Current metering
CurrentMetering represents the active and reactive energy accumulation and the active and reactive power.
Standard report
Report
Features | Fctrl | CmdID | ClusterID | AttributeID | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|
Report attributes | 0x11 or 0x31 or ... | 0x0A | 0x00 0x52 | 0x00 0x00 | 0x41 | 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr | 0x0c: data length 0xpppppp: signed on 24 bit. summation of the active energy in W.h 0xqqqqqq: signed on 24 bit. summation of the reactive energy in VAR.h 0xnnnn: number of samples 0xwwww : signed on 16 bit. active power in W 0xrrrr: signed on 16 bit. reactive power in VAR |
Configuration
Features | Fctrl | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x52 | 0x00 0x00 0x00 0x41 0xmmmm 0xMMMM 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr | 0x00 0x00: attributeID 0x41: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval Reportable change: 0x0c: data length 0xpppppp: variation of summation of the active energy in W.h oxqqqqqq: variation of summation of the reactive energy in VAR.h 0xnnnn: variation of number of sample 0xwwww: variation of active power in W 0xrrrr: variation of reactive power in VAR |
Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x52 | 0xss 0x00 0x00 0x00 | 0xss:status |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x52 | 0x00 0x00 0x00 | 0x00 0x00: attributeID |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x52 | 0xss 0x00 0x00 0x00 0x41 0xmmmm 0xMMMM 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr | 0xss:status 0x00 0x00: attributeID 0x41: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval Reportable change: 0x0c: data length 0xpppppp: variation of summation of the active energy in W.h oxqqqqqq: variation of summation of the reactive energy in VAR.h 0xnnnn: variation of number of sample 0xwwww: variation of active power in W 0xrrrr: variation of reactive power in VAR |
Read/Write
Features | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x52 | 0x00 0x00 | Ask the consumption of the device | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x52 | 0x00 0x00 | 0x00 | 0x41 | 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr | 0x0c: data length 0xpppppp: signed on 24 bit. summation of the active energy in W.h 0xqqqqqq: signed on 24 bit. summation of the reactive energy in VAR.h 0xnnnn: number of samples 0xwwww : signed on 16 bit. active power in W 0xrrrr: signed on 16 bit. reactive power in VAR |
Batch report
Configuration
Feature | Fctrl | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x52 | 0bsssssss1 0x00 0x00 [0xii 0xmmmm 0xMMMM [delta] [resolution] 0xtt]... | 0bsssssss1: obsssssss is the size of configuration string after attributeID (obsssssss1 right shifted) 0x00 0x00: attribute ID 0xii: the index of required field 0: Active energy In Wh (sample type to use in br_uncompress: I24) 1: Reactive energy in VARh (sample type to use in br_uncompress: I24) 2: Accumulation duration in seconds (sample type to use in br_uncompress: U16) 3: Active power in W (sample type to use in br_uncompress: I16) 4: Reactive power in VAR (sample type to use in br_uncompress: I16) 0xmmmm: minimum recorting interval 0xMMMM: maximum recorting interval [delta]: the required delta value (the size depends on the attribute data type) [resolution]: the required resolution value (the size depends on the attribute data type) 0xtt:the tag value |
Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x52 | 0xss 0x01 0x00 0x00 | 0xss : status 0x01 : batch |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x52 | 0x01 0x00 0x00 | 0x01: Batch |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x52 | 0xss 0bsssssss1 0x00 0x00 [0xii 0xmmmm 0xMMMM [delta] [resolution] 0xtt]... | 0xss : status 0bsssssss1: obsssssss is the size of configuration string after attributeID (obsssssss1 right shifted) 0x00 0x00: attribute ID 0xii: the index of required field 0: Active energy In Wh (sample type to use in br_uncompress: I24) 1: Reactive energy in VARh (sample type to use in br_uncompress: I24) 2: Accumulation duration in seconds (sample type to use in br_uncompress: U16) 3: Active power in W (sample type to use in br_uncompress: I16) 4: Reactive power in VAR (sample type to use in br_uncompress: I16) 0xmmmm: minimum recorting interval 0xMMMM: maximum recorting interval [delta]: the required delta value (the size depends on the attribute data type) [resolution]: the required resolution value (the size depends on the attribute data type) 0xtt:the tag value |
Cluster commands
Features | Fctrl | CmdID | ClusterID | Data | Comment |
---|---|---|---|---|---|
Reset command | 0x11 or 0x31 or ... | 0x50 | 0x00 0x52 | 0x00 | Reset the consumption of the device |