Images:

Détecteur ouverture de porte

Nom : Détecteur ouverture de porte
Marque : Xiaomi
  panier-acheter-ecommerce-shopping-icone-8314-48
Description:

Clusters disponibles

EndPoint: 0x01
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x0104 (Lighting – Dimmer Switch)
Input Cluster Count: 4
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0x0003 (General: Identify)
Cluster 2: Cluster ID: 0xFFFF (Unknown)
Cluster 3: Cluster ID: 0x0019 (General: OTA)
Output Cluster Count: 7
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0x0003 (General: Identify)
Cluster 2: Cluster ID: 0xFFFF (Unknown)
Cluster 3: Cluster ID: 0x0019 (General: OTA)
Cluster 4: Cluster ID: 0xD5B7 (Unknown)
Cluster 5: Cluster ID: 0x0402 (Measurement: Temperature)
Cluster 6: Cluster ID: 0x0403 (Unknown)

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 E4 24 46 00 15 8D 00 01 53 B0 FE 80 C3 03
ZiGate ← 01 00 4D 00 0C E4 24 46 00 15 8D 00 01 53 B0 FE 80 C3 03

Header

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

Message (Device announce):

24 46 = Short address ( adresse utilisé dans le réseau)
00 15 8D 00 01 53 B0 FE= Adresse MAC IEEE
80 = Mac capability

Footer

C3 = Qualité du signal
03 = End

Décodage :

Type: 0x004D (End Device Announce)
Short Address: 0x2446
Extended Address: 0x00158D000153B0FE
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 32 00 00 B7 03

Décodage :

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

Démarrage après appairage

ZiGate ← 01 81 02 00 1F 7A 00 47 39 01 00 00 00 05 00 42 00 12 6C 75 6D 69 2E 73 65 6E 73 6F 72 5F 6D 61 67 6E 65 74 A2 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x00
Src Addr: 0x4739
Src Ep: 0x01
Cluster ID: 0x0000 (General: Basic)
Attribute ID: 0x0005
Attribute Size: 0x0012
Attribute Type: 0x42 (Character String)
Attribute Data (Len – 18): lumi.sensor_magnet
Status: 0x00

ZiGate ← 01 81 02 00 0E 7B 01 47 39 01 00 00 00 01 00 20 00 01 0A A2 03

Décodage :

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

 

Ouverture / Fermeture de porte

Dès qu’il y a un changement d’état :

  • L’aimant est hors de porté (Ouverture de porte)
  • L’aimant est détecté (Fermeture de porte

Le capteur envoie une trame :

Fermeture de porte

ZiGate <- 01 81 02 00 0E 2D 03 09 7A 01 00 06 00 00 00 10 00 01 00 C6 03

Décodage :

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

0x00 = Fermé

Ouverture de porte

ZiGate <- 01 81 02 00 0E 38 04 09 7A 01 00 06 00 00 00 10 00 01 01 D5 03

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

0x01 = Ouvert

Back

Translate »