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 attribute
- Count attribute
- Polarity attribute
- Edge Selection attribute
- Debounce Period attribute
- Application Type attribute
Present value
The Present value information attribute set contains only the attribute representing the current state of the device.
Standard report
Report
Features | Fctrl | CmdID | ClusterID | AttributeID | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|
Report attributes | 0x11 or 0x31 or ... | 0x0A | 0x00 0x0F | 0x00 0x55 | 0x10 | 0xcc | 0xcc:binary value (0x00 or 0x01) |
Configuration
Features | Fctrl | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x0F | 0x00 0x00 0x55 0x10 0xmmmm 0xMMMM 0xcc | 0x00 0x55: attributeID 0x10: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval 0xcc: reportable change |
Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x0F | 0xss 0x00 0x00 0x55 | 0xss:status |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x0F | 0x00 0x00 0x55 | 0x00 0x55: attributeID |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x0F | 0xss 0x00 0x00 0x55 0x10 0xmmmm 0xMMMM 0xcc | 0xss:status 0x00 0x55:attributeID 0x10: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval 0xcc: reportable change |
Read/Write
Features | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x0F | 0x00 0x55 | Ask the binary input value of the sensor | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x0F | 0x00 0x55 | 0x00 | 0x10 | 0x0b | 0x0b: 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 | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x0F | 0x11 0x00 0x55 0x00 0xmmmm 0xMMMM 0xdd 0xrr 0xtt | 0x11: 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 response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x0F | 0xss 0x01 0x00 0x55 | 0xss : status 0x01 : batch |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x0F | 0x01 0x00 0x55 | 0x01: Batch |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x0F | 0xss 0x11 0x00 0x55 0x00 0xmmmm 0xMMMM 0xdd 0xrr 0xtt | 0xss : 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
Feature | Fctrl | CmdID | ClusterID | AttributeID | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|
Report attributes | 0x11 or 0x31 or ... | 0x0A | 0x00 0x0F | 0x04 0x02 | 0x23 | 0xcccccccc | 0xcccccccc: current value of the counter |
Configuration
Feature | Fctrl | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x0F | 0x00 0x04 0x02 0x23 0xmmmm 0xMMMM 0xcccccccc | 0x04 0x02: attributeID 0x23: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval 0xcccccccc: reportable change |
Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x0F | 0xss 0x00 0x04 0x02 | 0xss:status 0x04 0x02: attributeID |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x0F | 0x00 0x04 0x02 | 0x04 0x02: attributeID |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x0F | 0xss 0x00 0x04 0x02 0x23 0xmmmm 0xMMMM 0xcccccccc | 0xss: status 0x04 0x02: attributeID 0x23: attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval 0xcccccccc: reportable change |
Read/Write
Feature | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0X00 0X0F | 0x04 0x02 | ||||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x0F | 0x04 0x02 | 0x00 | 0x23 | 0xcccccccc | 0xcccccccc: Current value of the counter |
Write attribute no response | 0x11 or 0x31 or ... | 0x05 | 0x00 0x0F | 0x04 0x02 | 0x23 | 0xcccccccc | Set 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
Feature | Fctrl | CmdID | ClusterID | Payload | Comment |
---|---|---|---|---|---|
Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x0F | 0x1D 0x04 0x02 0x00 0xmmmm 0xMMMM 0xdddddddd 0xrrrrrrrr 0xtt | 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 |
Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x0F | 0xss 0x01 0x04 0x02 | 0xss : status 0x01: batch 0x04 0x02: attributeID |
Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x0F | 0x01 0x04 0x02 | 0x01 : batch |
Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x0F | 0xss 0x1D 0x04 0x02 0x00 0xmmmm 0xMMMM 0xdddddddd 0xrrrrrrrr 0xtt | 0xss: 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
Feature | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x0F | 0x00 0x54 | Ask the current polarity of the remote sensor | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x0F | 0x00 0x54 | 0x00 | 0x10 | 0xnn | 0xnn: 0x00: normal 0x01: reversed |
Write attribute no response | 0x11 or 0x31 or ... | 0x05 | 0x00 0x0F | 0x00 0x54 | 0x10 | 0xnn |
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
Feature | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x0F | 0x04 0x00 | Ask the current edge selection | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0X00 0X0F | 0x04 0x00 | 0x00 | 0x18 | 0xnn | 0xnn: bits field with b0: falling edge, b1: Rising edge, b2: Polling 0x01: Falling edge 0x02: Rising edge 0x03: Both rising and falling 0x05:Polling & Falling edge 0x06:Polling & RIsing edge 0x07:Polling & Both rising and falling edge |
Write attribute no response | 0x11 or 0x31 or ... | 0x05 | 0X00 0X0F | 0x04 0x00 | 0x18 | 0xnn |
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
Feature | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x0F | 0x04 0x01 | Ask the current debounce period | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x0F | 0x04 0x01 | 0x00 | 0x21 | 0xnn 0xnn | 0xnn 0xnn: Debounce period (milliseconds) |
Write attribute no response | 0x11 or 0x31 or ... | 0x05 | 0x00 0x0F | 0x04 0x01 | 0x21 | 0xnn 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
Feature | Fctrl | CmdID | ClusterID | AttributeID | Status | Attribute type | Data | Comment |
---|---|---|---|---|---|---|---|---|
Read attribute request | 0x11 or 0x31 or ... | 0x00 | 0x00 0x0F | 0x01 0x00 | Ask the ApplicationType of the remote sensor | |||
Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x0F | 0x01 0x00 | 0x00 | 0x23 | 0x03 0xaaaaaa | 0xaaaaaa: 0xFF 0xFF 0xFF:undefined Application type 0x01 0x00 0x02:Motion detection |