Binary Input Cluster

 

This cluster manages a binary entry, it delivers the current state and the number of state change.

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


The Present value information attribute set contains only the attribute representing the current state of the device.

Standard report

Report

FeaturesFctrl CmdIDClusterIDAttributeIDAttribute typeDataComment
Report attributes0x11 or 0x31 or
...
0x0A0x00 0x0F 0x00 0x550x100xcc0xcc:binary value (0x00 or 0x01)

Configuration

FeaturesFctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x0F0x00 0x00 0x55 0x10 0xmmmm 0xMMMM 0xcc0x00 0x55: attributeID
0x10: attribute type
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xcc: reportable change
Configure reporting response0x11 or 0x31 or
...
0x070x00 0x0F0xss 0x00 0x00 0x550xss:status
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x0F0x00 0x00 0x550x00 0x55: attributeID
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x0F0xss 0x00 0x00 0x55 0x10 0xmmmm 0xMMMM 0xcc0xss:status
0x00 0x55:attributeID
0x10: attribute type
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xcc: reportable change

Read/Write

FeaturesFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x0F 0x00 0x55Ask the binary input value of the sensor
Read attribute response0x11 or 0x31 or
...
0x010x00 0x0F0x00 0x550x000x100x0b0x0b: binary value (0x00 or 0x01)

Batch report

The Present value sample type is « Boolean », the corresponding number to use in br_uncompress type is 1.

Configuration

Feature Fctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x0F0x11 0x00 0x55 0x00 0xmmmm 0xMMMM 0xdd 0xrr 0xtt0x11: Batch(size+flag); 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x08.
0x00 0x55: AttributeID
0x00: the index of required field( the presentvalue has got only one field 0)
0xmmmm: minimum recorting interval
0xMMMM: maximum recorting interval
0xdd: the required delta value (the size depends on the attribute data type)
0xrr: the required resolution value (the size depends on the attribute data type)
0xtt:the tag value
Configure reporting response0x11 or 0x31 or
...
0x070x00 0x0F0xss 0x01 0x00 0x550xss : status
0x01 : batch
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x0F0x01 0x00 0x550x01: Batch
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x0F0xss 0x11 0x00 0x55 0x00 0xmmmm 0xMMMM 0xdd 0xrr 0xtt0xss : status
0x11: Batch(size+flag); 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x08.
0x00: the index of required field( the presentvalue has got only one field 0)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xdd: the required delta value (the size depends on the attribute data type)
0xrr: the required resolution value (the size depends on the attribute data type)
0xtt: the tag value

It is not possible to batch the present value if the change of state is faster than 1 second.

Count


The counter information attribute set contains the number of state change of the sensor.

Standard report

Report

FeatureFctrl CmdIDClusterIDAttributeIDAttribute typeDataComment
Report attributes0x11 or 0x31 or
...
0x0A0x00 0x0F0x04 0x020x230xcccccccc0xcccccccc: current value of the counter

Configuration

FeatureFctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x0F0x00 0x04 0x02 0x23 0xmmmm 0xMMMM 0xcccccccc0x04 0x02: attributeID
0x23: attribute type
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xcccccccc: reportable change
Configure reporting response0x11 or 0x31 or
...
0x070x00 0x0F0xss 0x00 0x04 0x020xss:status
0x04 0x02: attributeID
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x0F0x00 0x04 0x020x04 0x02: attributeID
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x0F0xss 0x00 0x04 0x02 0x23 0xmmmm 0xMMMM 0xcccccccc0xss: status
0x04 0x02: attributeID
0x23: attribute type
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xcccccccc: reportable change

Read/Write

FeatureFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000X00 0X0F0x04 0x02
Read attribute response0x11 or 0x31 or
...
0x010x00 0x0F0x04 0x020x000x230xcccccccc0xcccccccc: Current value of the counter
Write attribute no response0x11 or 0x31 or
...
0x050x00 0x0F0x04 0x020x230xccccccccSet the Current value of the counter

Batch report

The count sample type is « Unsigned 32 bits integer », the corresponding number to use in br_uncompress type is 10.

Configuration

FeatureFctrl CmdIDClusterIDPayloadComment
Configure reporting0x11 or 0x31 or
...
0x060x00 0x0F0x1D 0x04 0x02 0x00 0xmmmm 0xMMMM 0xdddddddd 0xrrrrrrrr 0xtt0x1D: Batch(size+flag); 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x0E.
0x04 0x02: AttributeID
0x00: the index of required field( the counter attribute has got only one field 0)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xdddddddd: the required delta value (the size depends on the attribute data type)
0xrrrrrrrr: the required resolution value (the size depends on the attribute data type)
0xtt: the tag value
Configure reporting response0x11 or 0x31 or
...
0x070x00 0x0F0xss 0x01 0x04 0x020xss : status
0x01: batch
0x04 0x02: attributeID
Read reporting configuration0x11 or 0x31 or
...
0x080x00 0x0F0x01 0x04 0x020x01 : batch
Read reporting configuration response0x11 or 0x31 or
...
0x090x00 0x0F0xss 0x1D 0x04 0x02 0x00 0xmmmm 0xMMMM 0xdddddddd 0xrrrrrrrr 0xtt0xss: status
0x1D: Batch(size+flag); 0bsssssss is the size of configuration string after attributeID (obsssssss1 right shifted). The size here is 0x0E.
0x04 0x02: AttributeID
0x00: the index of required field( the counter attribute has got only one field 0)
0xmmmm: minimum reporting interval
0xMMMM: maximum reporting interval
0xdddddddd: the required delta value (the size depends on the attribute data type)
0xrrrrrrrr: the required resolution value (the size depends on the attribute data type)
0xtt: the tag value

Polarity


The Polarity attribute set contains only the attribute representing if the physical input is active when 1 (Polarity = 1) or active when 0 (Polarity = 0).

Read/Write

FeatureFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x0F0x00 0x54Ask the current polarity of the remote sensor
Read attribute response0x11 or 0x31 or
...
0x010x00 0x0F0x00 0x540x000x100xnn0xnn:
0x00: normal
0x01: reversed
Write attribute no response0x11 or 0x31 or
...
0x050x00 0x0F0x00 0x540x100xnn

Edge Selection


The Edge counting selection attribute set contains only the attribute that defines the type of counting either Transition from 0 to 1 rising or from 1 to 0 falling or both.

Read/Write

FeatureFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x0F0x04 0x00Ask the current edge selection
Read attribute response0x11 or 0x31 or
...
0x010X00 0X0F0x04 0x000x000x180xnn0xnn:
0x01: Falling edge
0x02: Rising edge
0x03: Both rising and falling
0x04:Polling
Write attribute no response0x11 or 0x31 or
...
0x010X00 0X0F0x04 0x000x180xnn

Debounce period


The Debounce period attribute set contains only the attribute that defines the delay that is used to accept a new “Pulse/Edge” after the last detected.

Read/Write

FeatureFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x0F0x04 0x01Ask the current debounce period
Read attribute response0x11 or 0x31 or
...
0x010x00 0x0F0x04 0x010x000x210xnn 0xnn0xnn 0xnn: Debounce period (milliseconds)
Write attribute no response0x11 or 0x31 or
...
0x050x00 0x0F0x04 0x010x210xnn 0xnn

Application Type


The application type attribute informs about the current kind of application of the cluster. This should be set according to the sensor type or sensor usage.

Read/Write

FeatureFctrl CmdIDClusterIDAttributeIDStatusAttribute typeDataComment
Read attribute request0x11 or 0x31 or
...
0x000x00 0x0F0x01 0x00Ask the ApplicationType of the remote sensor
Read attribute response0x11 or 0x31 or
...
0x010x00 0x0F0x01 0x000x000x230x03 0xaaaaaa0xaaaaaa:
0xFF 0xFF 0xFF:undefined Application type
0x01 0x00 0x02:Motion detection
Print Friendly