La ZiGate est une passerelle entre les objets communiquant en ZigBee® et votre box domotique. L’objectif principal de la ZiGate est de ne pas s’attacher à un protocole ZigBee® en particulier. En effet, le souhait est de mutualiser le plus de matériels possibles car mêler plusieurs marques pour sa domotique est un gage de liberté. ZiGate dit stop aux monopoles techniques.

Voici la liste des matériels compatibles :

 

Images:

Prise pilotée Xiaomi

Nom : Prise pilotée Xiaomi
Marque : Xiaomi
  panier-acheter-ecommerce-shopping-icone-8314-48
Description:

Appairage

Pour mettre cet objet en mode inclusion, il faut :

Appuyer 10 sec sur le bouton “Power”. La led se met à clignoter rouge puis bleu

Clusters disponibles

Type: 0x8045 (Active Endpoints Response)
SQN: 0x0F
Status: 0x00
Short Address: 0x1508
Endpoint Count: 4
Endpoint List:
Endpoint 0: 0x01
Endpoint 1: 0x02
Endpoint 2: 0x03
Endpoint 3: 0x64

EndPoint: 0x01
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x0051 (Generic – Smart Plug)
Input Cluster Count: 9
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0x0004 (General: Groups)
Cluster 2: Cluster ID: 0x0003 (General: Identify)
Cluster 3: Cluster ID: 0x0006 (General: On/Off)
Cluster 4: Cluster ID: 0x0010 (Unknown)
Cluster 5: Cluster ID: 0x0005 (General: Scenes)
Cluster 6: Cluster ID: 0x000A (General: Time)
Cluster 7: Cluster ID: 0x0001 (General: Power Config)
Cluster 8: Cluster ID: 0x0002 (General: Temperature Config)
Output Cluster Count: 2
Cluster 0: Cluster ID: 0x0000 (General: Basic)
Cluster 1: Cluster ID: 0x0004 (General: Groups)

EndPoint: 0x02
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x0009 (Generic – Mains Power Outlet)
Input Cluster Count: 1
Cluster 0: Cluster ID: 0x000C (Unknown)
Output Cluster Count: 2
Cluster 0: Cluster ID: 0x000C (Unknown)
Cluster 1: Cluster ID: 0xBA00 (Unknown)

EndPoint: 0x03
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x0053 (Unknown)
Input Cluster Count: 1
Cluster 0: Cluster ID: 0x000C (Unknown)
Output Cluster Count: 1
Cluster 0: Cluster ID: 0x000C (Unknown)

EndPoint: 0x64
Profile ID: 0x0104 (ZigBee HA)
Device ID: 0x0107 (Lighting – Occupancy Sensor)
Input Cluster Count: 1
Cluster 0: Cluster ID: 0x000F (General: Binary Input Basic)
Output Cluster Count: 2
Cluster 0: Cluster ID: 0x000F (General: Binary Input Basic)
Cluster 1: Cluster ID: 0xB700 (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 34 15 08 00 15 8D 00 01 2A 43 C8 8E DE 03
ZiGate ← 01 00 4D 00 0C 34 15 08 00 15 8D 00 01 2A 43 C8 8E DE 03

Header

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

Message (Device announce):

15 08 = Short address ( adresse utilisé dans le réseau)
00 15 8D 00 01 2A 43 C8= Adresse MAC IEEE
8E = Mac capability

Footer

DE = Qualité du signal
03 = End

Décodage :

Type: 0x004D (End Device Announce)
Short Address: 0x1508
Extended Address: 0x158D00012A43C8
MAC Capability: 0x8E
Alternate PAN Coordinator: False
Device Type: Router
Power Source: AC
Receiver On When Idle: True
Security Capability: Standard
Allocate Address: True

Route Discovery Confirm

ZiGate ← 01 87 01 00 03 38 00 00 BD 03

Décodage :

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

Démarrage après appairage

ZiGate ← 01 81 02 00 16 42 05 15 08 01 00 00 00 05 00 42 00 09 6C 75 6D 69 2E 70 6C 75 67 BD 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x05
Src Addr: 0x1508
Src Ep: 0x01
Cluster ID: 0x0000 (General: Basic)
Attribute ID: 0x0005
Attribute Size: 0x0009
Attribute Type: 0x42 (Character String)
Attribute Data (Len – 9): lumi.plug
Status: 0x00

ZiGate ← 01 81 02 00 0E 08 05 15 08 01 00 00 00 01 00 20 00 01 01 BD 03

Décodage :

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

État de la prise pilotée

ZiGate ← 01 81 02 00 0E 32 09 15 08 01 00 06 00 00 00 10 00 01 00 BD 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x09
Src Addr: 0x1508
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 = prise éteinte

ZiGate ← 81 02 00 11 EB 09 15 08 01 00 06 F0 00 00 23 00 04 02 02 02 02 BD 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x09
Src Addr: 0x1508
Src Ep: 0x01
Cluster ID: 0x0006 (General: On/Off)
Attribute ID: 0xF000
Attribute Size: 0x0004
Attribute Type: 0x23 (UINT32)
Attribute Data: 0x02020202
Status: 0x00

Commandes

Comme son nom l’indique, vous pourrez piloter la prise avec l’envoi de commande ON/OFF depuis la ZiGate. Vous pourrez aussi contrôler la consommation électrique de vos équipements

ON/OFF

Envoi de la commande

ZiGate -> 01 02 10 92 02 10 02 16 8B 02 12 15 02 18 02 11 02 11 02 10 03

Décodage (voir les commandes disponibles):

Message type : 0x0092
Length : 0x06
CheckSum : 0x8B
DATAS :
* Address mode : 0x02 (short address)
* Address : 0x1508
* Source endpoint : 0x01
* Destination endpoint : 0x01
* Command id : 0x00  (0- OFF 1- ON 2- TOGGLE)

Statut OK (ZiGate a bien compris le message) :

ZiGate <- 01 80 00 00 05 17 00 00 00 92 00 03

Décodage :

Type: 0x8101 (Default Response)
SQN: 0x00
EndPoint: 0x01
Cluster ID: 0x0006 (General: On/Off)
Command: 0x00
Status: 0x00

Réponse de la prise (Statut OK) :

ZiGate <- 01 81 01 00 07 37 00 01 00 06 00 00 B7 03

Décodage :

Type: 0x8101 (Default Response)
SQN: 0x00
EndPoint: 0x01
Cluster ID: 0x0006 (General: On/Off)
Command: 0x00
Status: 0x00

Retour de l’état de la prise :

ZiGate <- 01 81 02 00 0E 2B 1A 15 08 01 00 06 00 00 00 10 00 01 00 B7 03

Décodage :

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

Retour d’information de la prise pilotée (inconnu pour le moment) :

ZiGate <- 01 81 02 00 11 F2 1A 15 08 01 00 06 F0 00 00 23 00 04 07 07 07 07 B7 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x1A
Src Addr: 0x1508
Src Ep: 0x01
Cluster ID: 0x0006 (General: On/Off)
Attribute ID: 0xF000
Attribute Size: 0x0004
Attribute Type: 0x23 (UINT32)
Attribute Data: 0x07070707
Status: 0x00

Consommation électrique

Envoi de la commande Read attribute

ZiGate -> 01 02 11 02 10 02 10 02 1E 49 02 12 15 02 18 02 11 02 12 02 10 02 1C 02 10 02 10 02 10 02 11 02 12 02 10 55 03

Décodage (voir les commandes disponibles):

Message Type : 0x100
Length : 0x021E
Checksum : 0x49
DATAS :
* Address mode : 0x02 (short address)
* Target Address  : 0x1508
* source endpoint : 0x01
* destination endpoint : 0x02
* Cluster id : 0x000C
* Direction : 0
* Manufacturer specific : 0
* Manufacturer id :0
* Number of attributes : 0x01
* Attributes List: 0x0055

Statut OK (ZiGate a bien compris le message) :

ZiGate <- 01 80 00 00 05 86 00 02 01 00 00 03

Décodage:

Type: 0x8000 (Status)
Length: 5
Status: 0x00 (Success)
SQN: 0x02
Message: 

Read response attribute :

ZiGate <- 01 81 02 00 11 51 02 15 08 02 00 0C 00 55 00 39 00 04 00 00 00 00 BA 03

Décodage :

Type: 0x8102 (Attribute Report)
SQN: 0x02
Src Addr: 0x1508
Src Ep: 0x02
Cluster ID: 0x000C (Unknown)
Attribute ID: 0x0055
Attribute Size: 0x0004
Attribute Type: 0x39 (Unknown)
Attribute Data: 0x0000 –> normalement la valeur correspond à la consommation d’électricité

Status: 0x00

Read response attribute :

ZiGate <- 01 81 02 00 0D 5C 02 15 08 02 00 0C 00 00 86 FF 00 00 BA 03

Décodage:

Type: 0x8102 (Attribute Report)
SQN: 0x02
Src Addr: 0x1508
Src Ep: 0x02
Cluster ID: 0x000C (Unknown)
Attribute ID: 0x0000
Attribute Size: 0x0000
Attribute Type: 0xFF (Unknown)
Status: 0x86

Back

Translate »