English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Wireless Switch

Last Updated on : 2022-06-06 15:21:43download

Zigbee protocol version

Device ID Profile ID
0x0000 0x0104

Supported clusters

Input clusters (server) Output clusters (client)
Basic (0x0000) OTA Upgrade (0x0019)
Power Configuration (0x0001) /
On/Off (0x0006) /

Supported attributes and commands

Attributes contain the basic information about a Zigbee device. A gateway can get this information through the Read Attributes and Write Attributes defined by Zigbee Cluster Library Specification.

Basic Cluster

Attributes:

ID Name Data type (ID) Range Default
0x0000 ZCLVersion uint8 (0x20) 0x00 to 0xff 0x03, used for connection to Tuya-enabled Zigbee gateways.
0x0001 ApplicationVersion uint8 (0x20) 0x00 to 0xff 0x40
0x40 in hex is 0100 0000 in binary. 0100 0000 represents version 1.0.0 so 0x40 represents 1.0.0.
0x0002 StackVersion uint8 (0x20) 0x00 to 0xff 0x02
0x0003 HWVersion uint8 (0x20) 0x00 to 0xff 0x01
0x0004 ManufacturerName string (0x42) 0 to 32 bytes For example, _TZ3000_l6web2ir.
The value of this attribute is 16 bytes in length, containing 8-byte prefix of capability value and 8-byte PID. The PID is the unique identifier of the Zigbee product you create on the Tuya IoT Development Platform. The capability value can be obtained from the Zigbee development documentation.
0x0005 ModelIdentifier string (0x42) 0 to 32 bytes SM004x, used for connection to Tuya-enabled Zigbee gateways. x represents the number of channels. For example, SM0043 represents a 3-gang wireless switch.
0x0007 PowerSource enum8 (0x30) 0x00 to 0xff 0x03, used for connection to Tuya-enabled Zigbee gateways and representing battery-powered devices.
0xFFFD ClusterRevision uint16 (0x21) 0x0000 to 0xffff 0x0001

Commands:

ID Name Direction Description
0x00 Reset to Factory Defaults Client to server /

On/Off Cluster

Attributes:

ID Name Data type (ID) Range Default
0x0000 OnOff bool (0x10)
  • 0: Off.
  • 1: On.
0x00

Mapping between DPs and clusters

DPID DP description Standard command
1 Switch 1 (Required) No
2 Switch 2 (Required) No
3 Switch 3 (Required) No
4 Switch 4 (Required) No

DPs 1 to 4

Direction Cluster ID Command/Attribute ID Value
Client to server / / /
Server to client 0x0006: On/Off 0xFD (Tuya-specific command)
  • 0: Single press.
  • 1: Double press.
  • 2: Press and hold.