Re: [Béta]Plugin Zigate USB + Wifi
Publié : 02 déc. 2017, 17:00
pas de problème après maj,
je penses que ton plugin.py a mal été copié/collé
je penses que ton plugin.py a mal été copié/collé
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
2017-12-02 19:13:47.759 (ZiGate) onMessage called
2017-12-02 19:13:47.759 (ZiGate) ZigateDecode - decodind data : 018102120210021ead192b69021102100216021002100210100210021102116c03
2017-12-02 19:13:47.760 (ZiGate) ZigateRead - decoded data : 018102000ead192b69010006000000100001016c03
2017-12-02 19:13:47.760 (ZiGate) ZigateRead - Message Type : 8102, Data : 192b6901000600000010000101, RSSI : 6c, Length : 000e, Checksum : ad
2017-12-02 19:13:47.760 (ZiGate) ZigateRead - MsgType 8102 - reception data : 018102000ead192b69010006000000100001016c03 ClusterID : 0006 Attribut ID : 0000 Src Addr : 2b69 Scr Ep: 01
2017-12-02 19:13:47.760 (ZiGate) MajDomoDevice - Device ID : 2b69 - Device EP : 01 - Type : Switch - Value : 01
2017-12-02 19:13:47.760 (ZiGate) onMessage - effacement de la trame suite a une erreur de decodage : 018102120210021ead192b69021102100216021002100210100210021102116c03
2017-12-02 19:13:53.871 (ZiGate) Calling message handler 'onHeartbeat'.
2017-12-02 19:13:53.873 Error: (ZiGate) 'onHeartbeat' failed 'KeyError'.
2017-12-02 19:13:53.873 Error: (ZiGate) ----> Line 119 in /home/pi/domoticz/plugins/ZiGate/plugin.py, function onHeartbeat
2017-12-02 19:13:53.873 Error: (ZiGate) ----> Line 84 in /home/pi/domoticz/plugins/ZiGate/plugin.py, function onHeartbeat
2017-12-02 19:13:53.873 Error: (ZiGate) ----> Line 877 in /home/pi/domoticz/plugins/ZiGate/plugin.py, function ResetDevice
Code : Tout sélectionner
2017-12-02 21:21:19.676 (ZiGate) onMessage called
2017-12-02 21:21:19.676 (ZiGate) ZigateDecode - decodind data : 018102120210021e4e1f63f4021102100216021002100210100210021102105d03
2017-12-02 21:21:19.676 (ZiGate) ZigateRead - decoded data : 018102000e4e1f63f4010006000000100001005d03
2017-12-02 21:21:19.676 (ZiGate) ZigateRead - Message Type : 8102, Data : 1f63f401000600000010000100, RSSI : 5d, Length : 000e, Checksum : 4e
2017-12-02 21:21:19.676 (ZiGate) ZigateRead - MsgType 8102 - reception data : 018102000e4e1f63f4010006000000100001005d03 ClusterID : 0006 Attribut ID : 0000 Src Addr : 63f4 Scr Ep: 01
2017-12-02 21:21:19.676 (ZiGate) MajDomoDevice - Device ID : 63f4 - Device EP : 01 - Type : Switch - Value : 00
2017-12-02 21:21:19.676 (ZiGate) onMessage - effacement de la trame suite a une erreur de decodage : 018102120210021e4e1f63f4021102100216021002100210100210021102105d03
2017-12-02 21:21:20.380 (ZiGate) Calling message handler 'onHeartbeat'.Pas de long click press ni de long clique release avec les boutons Xiaomi en pur Zigbee. Juste un nombre de clique de 1 à 4. C'est la gateway qui fait le calcul du long click press et release.zaraki673 a écrit :l envoi des commandes n'est pas mis en place pour les différents switch, il y a juste le retour d'état.
pour long click et long click release ... ma faudrait des trames, le release c est la trames de remises a zero qui suit chaque click je penses mais l'autres ...
Code : Tout sélectionner
2017-12-06 20:10:09.810 Domoticz V3.8153 (c)2012-2017 GizMoCuz
...
2017-12-06 20:10:09.967 PluginSystem: Started, Python version '3.5.3'.
...
2017-12-06 20:10:12.461 (Zigate) Initialized version 1.0.7, author 'zaraki673'
2017-12-06 20:10:12.463 (Zigate) onStart called
2017-12-06 20:10:12.463 (Zigate) Debug log level set to: 'true'.
2017-12-06 20:10:12.463 (Zigate) Protocol set to: 'None'.
2017-12-06 20:10:12.463 (Zigate) Transport set to: 'Serial', '/dev/ttyUSB1', 115200.
2017-12-06 20:10:12.465 (Zigate) Connect directive received, action initiated successfully.
2017-12-06 20:10:12.465 (Zigate) Calling message handler 'onConnect'.
2017-12-06 20:10:12.465 (Zigate) onConnect called
2017-12-06 20:10:12.465 (Zigate) Connected successfully to: /dev/ttyUSB1
2017-12-06 20:10:12.465 (Zigate) ZigateDecode - Encodind data : 0021
2017-12-06 20:10:12.465 (Zigate) Transcode in : 0021 / out :021021
2017-12-06 20:10:12.465 (Zigate) ZigateDecode - Encodind data : 0004
2017-12-06 20:10:12.465 (Zigate) Transcode in : 0004 / out :02100214
2017-12-06 20:10:12.465 (Zigate) getChecksum - Checksum : 0x2d
2017-12-06 20:10:12.465 (Zigate) ZigateDecode - Encodind data : 00000800
2017-12-06 20:10:12.465 (Zigate) Transcode in : 00000800 / out :0210021002180210
2017-12-06 20:10:12.465 (Zigate) sendZigateCmd - Comand send : 01021021021002142d021002100218021003
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0023
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0023 / out :021023
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0001
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0001 / out :02100211
2017-12-06 20:10:12.466 (Zigate) getChecksum - Checksum : 0x22
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 00
2017-12-06 20:10:12.466 (Zigate) Transcode in : 00 / out :0210
2017-12-06 20:10:12.466 (Zigate) sendZigateCmd - Comand send : 010210230210021122021003
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0024
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0024 / out :021024
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0000
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0000 / out :02100210
2017-12-06 20:10:12.466 (Zigate) getChecksum - Checksum : 0x24
2017-12-06 20:10:12.466 (Zigate) sendZigateCmd - Comand send : 01021024021002102403
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0049
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0049 / out :021049
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : 0004
2017-12-06 20:10:12.466 (Zigate) Transcode in : 0004 / out :02100214
2017-12-06 20:10:12.466 (Zigate) getChecksum - Checksum : 0xb0
2017-12-06 20:10:12.466 (Zigate) ZigateDecode - Encodind data : FFFCFE00
2017-12-06 20:10:12.466 (Zigate) Transcode in : FFFCFE00 / out :FFFCFE0210
2017-12-06 20:10:12.466 (Zigate) sendZigateCmd - Comand send : 0102104902100214b0FFFCFE021003
2017-12-06 20:10:12.466 (Zigate) Sending 18 bytes of data:.
2017-12-06 20:10:12.466 (Zigate) 01 02 10 21 02 10 02 14 2d 02 10 02 10 02 18 02 10 03 .. .. ...!....-.........
2017-12-06 20:10:12.466 (Zigate) Sending 12 bytes of data:.
2017-12-06 20:10:12.466 (Zigate) 01 02 10 23 02 10 02 11 22 02 10 03 .. .. .. .. .. .. .. .. ...#...."...
2017-12-06 20:10:12.542 (Zigate) Sending 10 bytes of data:.
2017-12-06 20:10:12.542 (Zigate) 01 02 10 24 02 10 02 10 24 03 .. .. .. .. .. .. .. .. .. .. ...$....$.
2017-12-06 20:10:12.617 (Zigate) Sending 15 bytes of data:.
2017-12-06 20:10:12.617 (Zigate) 01 02 10 49 02 10 02 14 b0 ff fc fe 02 10 03 .. .. .. .. .. ...I....����...
2017-12-06 20:10:21.807 (Zigate) Received 32 bytes of data:.
2017-12-06 20:10:21.807 (Zigate) 18 18 98 7e 00 18 98 7e f8 98 fe 9e 60 e6 9e 00 18 98 66 06 ..�~..�~����`�..�f.
2017-12-06 20:10:21.807 (Zigate) 78 86 9e fe 9e 78 86 f8 66 78 06 66 .. .. .. .. .. .. .. .. x����x��fx.f
2017-12-06 20:10:21.807 (Zigate) Calling message handler 'onMessage'.
2017-12-06 20:10:21.808 Error: (Zigate) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.Code : Tout sélectionner
2017-12-06 20:14:46.389 (Zigate) 18 18 98 7e 00 18 60 9e 98 98 18 66 78 7e e6 9e f8 9e 00 18 ..�~..`���.fx~���..
2017-12-06 20:14:46.389 (Zigate) 66 66 66 9e 00 06 98 86 e6 78 18 e6 .. .. .. .. .. .. .. .. fff�..���x.�
2017-12-06 20:14:46.389 (Zigate) Calling message handler 'onMessage'.
2017-12-06 20:14:46.389 Error: (Zigate) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.