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

FeaturesFctrl CmdIDClusterIDAttributeIDAttribute typeDataComment
Report attributes0x11 or 0x31 or
...
0x0A0x00 0x520x00 0x000x410x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr0x0c: data length
0xpppppp: summation of the active energy in W.h
0xqqqqqq: summation of the reactive energy in VAR.h
0xnnnn: number of samples
0xwwww : active power in W
0xrrrr: reactive power in VAR

Configuration

FeaturesFctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x520x00 0x00 0x00 0x41 0xmmmm 0xMMMM 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr0x00 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 response0x11 or 0x31 or
...
0x070x00 0x520xss 0x00 0x00 0x000xss:status
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x520x00 0x00 0x000x00 0x00: attributeID
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x520xss 0x00 0x00 0x00 0x41 0xmmmm 0xMMMM 0x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr0xss: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

FeaturesFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x520x00 0x00Ask the consumption of the device
Read attribute response0x11 or 0x31 or
...
0x010x00 0x520x00 0x000x000x410x0c 0xpppppp 0xqqqqqq 0xnnnn 0xwwww 0xrrrr0x0c: data length
0xpppppp: summation of the active energy in W.h
0xqqqqqq: summation of the reactive energy in VAR.h
0xnnnn: number of samples
0xwwww : active power in W
0xrrrr: reactive power in VAR

Batch report

Configuration

Feature Fctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x520bsssssss1 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 response0x11 or 0x31 or
...
0x070x00 0x520xss 0x01 0x00 0x000xss : status
0x01 : batch
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x520x01 0x00 0x000x01: Batch
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x520xss 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


 

FeaturesFctrl CmdIDClusterIDDataComment
Reset command0x11 or 0x31 or
...
0x500x00 0x520x00Reset the consumption of the device

Print Friendly