Instructions pour le bouton Xiaomi aqara

xiaomi_switch_aqara

 

Clusters disponibles

  EndPoint: 0x01
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x5F01 (Unknown)
Input Cluster Count: 3
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0xFFFF (Unknown)
Cluster 2: Cluster ID: 0x0006 (General: On/Off)
Output Cluster Count: 3
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0xFFFF (Unknown)
Cluster 2: Cluster ID: 0x0006 (General: On/Off)

Suivre la procédure pour mettre la ZiGate en mode “écoute” :

Puis appuyer sur le bouton (sur le dessus du capteur) pendant 5 secondes. La led bleue se met à clignoter puis envoie les données suivantes :

Device announce

Le message est traitée deux fois :

ZiGate ← 01 00 4D 00 0C 92 82 97 00 15 8D 00 01 A6 67 EE 80 F0 03
ZiGate ← 01 00 4D 00 0C 92 82 97 00 15 8D 00 01 A6 67 EE 80 F0 03

Header

01 = Start
00 4D = Message type (device announce)
00 0C = Taille message
92 = Checksum

Message (Device announce):

82 97 = Short address ( adresse utilisé dans le réseau)
00 15 8D 00 01 A6 67 EE = Adresse MAC IEEE
80 = Mac capability

Footer

F0 = Qualité du signal
03 = End

Décodage :

Type: 0x004D (End Device Announce)
Short Address: 0x8297
Extended Address: 0x158D0001A667EE
MAC Capability: 0x80
Alternate PAN Coordinator: False
Device Type: End Device
Power Source: Battery
Receiver On When Idle: False
Security Capability: Standard
Allocate Address: True

Route Discovery Confirm

ZiGate ← 01 87 01 00 03 5B 00 00 DE 03

Décodage :

Type: 0x8701 (Route Discovery Confirm)
SQN: 0x00
Status: 0x00
Network Status: 0xDE

Démarrage après appairage

ZiGate ← 01 81 02 00 23 5F 00 82 97 01 00 00 00 05 00 42 00 16 6C 75 6D 69 2E 73 65 6E 73 6F 72 5F 73 77 69 74 63 68 2E 61 71 32 DE 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x00
Src Addr: 0x8297
Src Ep: 0x01
Cluster ID: 0x0000 (General: Basic)
Attribute ID: 0x0005
Attribute Size: 0x0016
Attribute Type: 0x42 (Character String)
Attribute Data (Len – 22): lumi.sensor_switch.aq2
Status: 0x00

ZiGate ← 01 81 02 00 0E 64 00 82 97 01 00 00 00 01 00 20 00 01 03 DE 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x00
Src Addr: 0x8297
Src Ep: 0x01
Cluster ID: 0x0000 (General: Basic)
Attribute ID: 0x0001
Attribute Size: 0x0001
Attribute Type: 0x20 (UINT8)
Attribute Data: 0x03
Status: 0x00

Commandes

Le bouton switch Xiaomi Aqara permet de faire du simple clic mais aussi du multi clics

Simple clic

ZiGate <- 01 81 02 00 0E 53 05 82 97 01 00 06 00 00 00 10 00 01 00 D8 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x05
Src Addr: 0x8297
Src Ep: 0x01
Cluster ID: 0x0006 (General: On/Off)
Attribute ID: 0x0000
Attribute Size: 0x0001
Attribute Type: 0x10 (Boolean)
Attribute Data: 0x00
Status: 0x00

ZiGate <- 01 81 02 00 0E 52 05 82 97 01 00 06 00 00 00 10 00 01 01 D8 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x05
Src Addr: 0x8297
Src Ep: 0x01
Cluster ID: 0x0006 (General: On/Off)
Attribute ID: 0x0000
Attribute Size: 0x0001
Attribute Type: 0x10 (Boolean)
Attribute Data: 0x01
Status: 0x00

 

Multi clics

ZiGate <- 01 81 02 00 0E E5 06 82 97 01 00 06 80 00 00 20 00 01 03 DE 03

Type: 0x8102 (Attribute Report)
SQN: 0x06
Src Addr: 0x8297
Src Ep: 0x01
Cluster ID: 0x0006 (General: On/Off)
Attribute ID: 0x8000
Attribute Size: 0x0001
Attribute Type: 0x20 (UINT8)
Attribute Data: 0x03
Status: 0x00

0x03 = nombre de clics (max 4)

 

Translate »