ON/OFF Cluster
This cluster manages the relay state of a device.
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.
ON/OFF
Standard report
Report
| Features | Fctrl | CmdID | ClusterID | AttributeID | Attribute type | Data | Comment | 
|---|---|---|---|---|---|---|---|
| Report attributes | 0x11 or 0x31 or ... | 0x0A | 0x00 0x06 | 0x00 0x00 | 0x10 | 0x0y | 0x0y: relay state (0x01: ON / 0x00: OFF) | 
Configuration
| Features | Fctrl | CmdID | ClusterID | Payload | Comments | 
|---|---|---|---|---|---|
| Configure reporting | 0x11 or 0x31 or ... | 0x06 | 0x00 0x06 | 0x00  0x00 0x00 0x10 0xmmmm 0xMMMM 0xcc | 0x00 0x00:AttributeID 0x10: Attribute type 0xmmmm: minimum reporting interval 0xMMMM: maximum reporting interval 0xcc: reportable change | 
| Configure reporting response | 0x11 or 0x31 or ... | 0x07 | 0x00 0x06 | 0xss 0x00 0x00 0x00 | 0xss: status | 
| Read reporting configuration | 0x11 or 0x31 or ... | 0x08 | 0x00 0x06 | 0x00 0x00 0x00 | 0x00 0x00: attributeID | 
| Read reporting configuration response | 0x11 or 0x31 or ... | 0x09 | 0x00 0x06 | 0xss 0x00 0x00 0x00 0x10 0xmmmm 0xMMMM 0xcc | 0xss:status 0x00 0x00: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 0x06 | 0x00 0x00 | Ask the relay state | |||
| Read attribute response | 0x11 or 0x31 or ... | 0x01 | 0x00 0x06 | 0x00 0x00 | 0x00 | 0x10 | 0x0y | 0x0y: relay state (0x01: ON/ 0x00: OFF) | 
Cluster commands
| Features | Fctrl | CmdID | ClusterID | Data | Comment | 
|---|---|---|---|---|---|
| Command: OFF | 0x11 or 0x31 or ... | 0x50 | 0x00 0x06 | 0x00 | 0x00: switch OFF the relay of the remote smartplug | 
| Command: ON | 0x11 or 0x31 or ... | 0x50 | 0x00 0x06 | 0x01 | 0x01: switch ON the remote smartplug | 
| Command: TOGGLE | 0x11 or 0x31 or ... | 0x50 | 0x00 0x06 | 0x02 | 0x02: invert the relay state of the remote smartplug | 
| Command: PULSE Not available on Smartplug | 0x11 or 0x31 or ... | 0x50 | 0x00 0x06 | 0xF1 0xss | 0xF1: generates one pulse during 0xss seconds. The ouput is set to 1 then to 0 after the delay | 
| Command: DEACTIVATE Not available on Smartplug | 0x11 or 0x31 or ... | 0x50 | 0x00 0x06 | 0x50 0xdd | available on version upper than v3.5.2.4329 0x50: activate/deactivate the output. 0xdd = 0x01 => Does not accept any command except this one 0xdd = 0x00 => accept all commands | 

