[Béta]Plugin Zigate USB + Wifi

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
zaraki673
Messages : 229
Inscription : 07 oct. 2016, 04:29

Re: [Béta]Plugin Zigate USB + Wifi

Message par zaraki673 »

SpaWnOL a écrit :Bon bah c'était trop beau pour que cela dure...

Hier soir tout fonctionne
Ce matin le switch ne veut plus rien savoir

Plus de reaction sous Domoticz...
et quand je clique sur Domoticz sur l'un des 4 boutons, j'ai ce message d'erreur dans les logs

2018-03-23 08:49:18.993 Error: (Zigate) 'onCommand' failed 'UnboundLocalError':'local variable 'ClusterSearch' referenced before assignment'.
2018-03-23 08:49:18.993 Error: (Zigate) ----> Line 294 in /home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py, function onCommand
2018-03-23 08:49:18.993 Error: (Zigate) ----> Line 154 in /home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py, function onCommand

:roll: :roll: :roll: :roll:
corriger en version 2.3.0, et depuis y a même une version 2.3.1 :P

Par contre, j ai désactivé, l'effacement du buffeur en cas d erreur de décodage, j'en ai pas rencontré encore (que 48h de test continu avec plusieurs capteurs xiaomi), si vous en rencontrez une merci de me le signaler avec les logs (en debug si possible c est bcp plus parlant )
nico.g2
Messages : 35
Inscription : 05 mai 2017, 23:30

Re: [Béta]Plugin Zigate USB + Wifi

Message par nico.g2 »

Bonjour a tous,

Je viens de faire la dernière mise a jour Zigate, comme plugin , je reinstall tous. Tous fonctionne bien. Puis je reviens une heure apres joué avec mon cube et voila les message que j'ai dans les logs:

Code : Tout sélectionner

018-03-24 15:59:48.631 (Zigate) pushing 'ReadMessage' on to queue
2018-03-24 15:59:48.674 (Zigate) processing 'ReadMessage' message
2018-03-24 15:59:48.674 (Zigate) Received 33 bytes of data
2018-03-24 15:59:48.674 (Zigate) 01 81 02 12 02 10 02 1f ee 11 d9 41 02 12 02 10 12 02 10 55 .�......�.�A.......U
2018-03-24 15:59:48.675 (Zigate) 02 10 21 02 10 02 12 02 10 02 10 8d 03 .. .. .. .. .. .. .. ..!........�.
2018-03-24 15:59:48.675 (Zigate) pushing 'onMessageCallback' on to queue
2018-03-24 15:59:48.675 (Zigate) processing 'onMessageCallback' message
2018-03-24 15:59:48.675 (Zigate) Calling message handler 'onMessage'.
2018-03-24 15:59:48.676 (Zigate) onMessage called
2018-03-24 15:59:48.677 (Zigate) ZigateDecode - decodind data : 018102120210021ff0021dd941021202101202105502102102100212021002128d03
2018-03-24 15:59:48.678 (Zigate) ZigateRead - decoded data : 018102000ff00dd94102001200550021000200028d03
2018-03-24 15:59:48.679 (Zigate) ZigateRead - Message Type : 8102, Data : 0dd9410200120055002100020002, RSSI : 8d, Length : 000f, Checksum : f0
2018-03-24 15:59:48.680 (Zigate) ZigateRead - MsgType 8102 - Report Individual Attribute response : 018102000ff00dd94102001200550021000200028d03
2018-03-24 15:59:48.680 (Zigate) Decode8102 - reception data : 0002 ClusterID : 0012 Attribut ID : 0055 Src Addr : d941 Scr Ep: 02
2018-03-24 15:59:48.681 (Zigate) MajDomoDevice - Device ID : d941 - Device EP : 02 - Type : 0012 - Value : 0002
2018-03-24 15:59:48.682 Error: (Zigate) 'onMessage' failed 'UnboundLocalError':'local variable 'data' referenced before assignment'.
2018-03-24 15:59:48.682 Error: (Zigate) ----> Line 287 in /home/pi/domoticz/plugins/Zigate/plugin.py, function onMessage
2018-03-24 15:59:48.682 Error: (Zigate) ----> Line 115 in /home/pi/domoticz/plugins/Zigate/plugin.py, function onMessage
2018-03-24 15:59:48.682 Error: (Zigate) ----> Line 352 in /home/pi/domoticz/plugins/Zigate/plugin.py, function ZigateDecode
2018-03-24 15:59:48.682 Error: (Zigate) ----> Line 596 in /home/pi/domoticz/plugins/Zigate/plugin.py, function ZigateRead
2018-03-24 15:59:48.683 Error: (Zigate) ----> Line 757 in /home/pi/domoticz/plugins/Zigate/plugin.py, function Decode8102
2018-03-24 15:59:48.683 Error: (Zigate) ----> Line 1196 in /home/pi/domoticz/plugins/Zigate/plugin.py, function ReadCluster
2018-03-24 15:59:48.683 Error: (Zigate) ----> Line 989 in /home/pi/domoticz/plugins/Zigate/plugin.py, function MajDomoDevice
seblang
Messages : 116
Inscription : 27 déc. 2015, 11:06

Re: [Béta]Plugin Zigate USB + Wifi

Message par seblang »

Bonjour j'ai une question con
Comment fais ton la mise à jour du plugin à la dernière version sans perdre ces périphériques ?
Il suffit de tout remplacer ? Faut il garder des fichiers ?
zaraki673
Messages : 229
Inscription : 07 oct. 2016, 04:29

Re: [Béta]Plugin Zigate USB + Wifi

Message par zaraki673 »

Pour vous deux, voir le readme sur le github, la procedure de mise à jour est expliqué (via git), et pour le cube il est plus dans les device supporté actuellement car toutes les trames ne sont pas encore décodés

;)
seblang
Messages : 116
Inscription : 27 déc. 2015, 11:06

Re: [Béta]Plugin Zigate USB + Wifi

Message par seblang »

Merci
Mais je suis sous Windows
dondipietro
Messages : 6
Inscription : 30 mars 2018, 16:25

Re: [Béta]Plugin Zigate USB + Wifi

Message par dondipietro »

Bonjour,
Tout d'abord un grand bravo pour ce plugin qui fonctionne très bien avec mes devices aqara et domoticz.

Néanmoins, j'ai aussi un problème avec les plug OSRAM, j'en ai 5.

Elle sont toutes bien associées, je peux d'ailleurs les commander avec TestGUI_ZiGate_NXP-4 je peux les passer ON/OFF en agissant sur le endpoint 3.

J'ai d'alleur remarqué que c'est plus fiable en choisisant short que short NO ACK

Par contre, seules 2 prises sont dans la liste des devices domoticzs sur mes 5 prises apairées.

Puis je les rajouter à la main dans DeviceList.txt si je connais leur adresse mac et la short adress ?

Voici mon fichier actuel :

Merci beaucoup.

J'ai repéré ces lignes là :
50ae : {'Battery': {}, 'IEEE': '84182600000c929a', 'ProfileID': 'c05e', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': 'Switch/', 'Ep': {'03': {'fc0f': {}, '0b04': {}, '0000': {}, '0006': {}, '0005': {}, '1000': {}, '0003': {}, '0004': {}}}, 'ZDeviceID': '0010', 'Status': 'inDB', 'RIA': '10', 'Model': 'plug.osram'}


Code : Tout sélectionner

9703 : {'Battery': {}, 'IEEE': {}, 'ProfileID': {}, 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Temp/Baro/Humi', 'Ep': {'01': {'0402': 22.0, '0000': {}, '0405': 58.5, '0403': 10.0}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': {}}
9263 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
2d53 : {'Battery': 93, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d0001a4a490', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.7, '0000': {}, '0405': 46.4, '0403': 3.3418158371210476e+157}}, 'Status': 'inDB', 'Heartbeat': '6014', 'RIA': '179', 'MacCapa': '80'}
4b1b : {'Battery': {}, 'IEEE': '00158d0001a3e436', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '5829', 'Type': 'Door', 'Ep': {'01': {'0000': {}, '0006': {}}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.sensor_magnet.aq2'}
4410 : {'Battery': {}, 'IEEE': {}, 'ProfileID': '0104', 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Baro/Humi/Temp', 'Ep': {'01': {'ffff': {}, '0405': 52.5, '0000': {}, '0003': {}, '0402': 21.3, '0403': 'ff'}}, 'ZDeviceID': '5f01', 'Status': 'inDB', 'RIA': '10', 'Model': {}}
7a0f : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
4f2f : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
6a36 : {'IEEE': '00158d0001a5e874', 'RIA': '44', 'ProfileID': {}, 'Type': 'Switch', 'Battery': {}, 'Heartbeat': '5908', 'Ep': {'01': {'0000': {}, '0006': '00'}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.sensor_switch.aq2'}
52b6 : {'IEEE': '00158d0001a230fc', 'RIA': '171', 'ProfileID': {}, 'Type': 'Temp/Humi/Baro', 'Battery': 90, 'Heartbeat': '6019', 'Ep': {'01': {'0000': {}, '0402': 20.8, '0405': 47.4, '0403': 'ff8a03018102000fa4a352b601040300100029000225fd8a030180000005b000700045'}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.weather'}
c138 : {'Battery': {}, 'IEEE': '00212effff01b893', 'ProfileID': '0104', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': {}, 'Ep': {'01': {'0019': {}}, '50': {}}, 'ZDeviceID': '0005', 'Status': '8043', 'RIA': '10', 'Model': {}}
e504 : {'IEEE': '00158d00016d125a', 'RIA': '21', 'ProfileID': {}, 'Type': 'Door', 'Battery': 91, 'Heartbeat': '5829', 'Ep': {'01': {'0000': {}, '0006': {}}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.sensor_magnet.aq2'}
e772 : {'Battery': {}, 'IEEE': '00158d00010a6ee4', 'ProfileID': 'a1e0', 'MacCapa': '8e', 'Heartbeat': '5806', 'Type': {}, 'Ep': {'0a': {'1902': {}, '0501': {}, '0604': {}, '0204': {}, '170b': {}, '0600': {}, '0205': {}, '0400': {}, '0104': {}, '0000': {}, '0202': {}, '0504': {}, '0300': {}, '0107': {}, '0003': {}, '0304': {}, '0800': {}, '0004': {}}, '01': {'1902': {}, '0501': {}, '0604': {}, '0204': {}, '170b': {}, '0600': {}, '0205': {}, '0400': {}, '0104': {}, '0000': {}, '0202': {}, '0504': {}, '0300': {}, '0107': {}, '0003': {}, '0304': {}, '0800': {}, '0004': {}}, 'f2': {'1902': {}, '0501': {}, '0604': {}, '0204': {}, '1800': {}, '0600': {}, '0205': {}, '0400': {}, '0104': {}, '210b': {}, '0000': {}, '0202': {}, '0504': {}, '0300': {}, '0107': {}, '0003': {}, '0304': {}, '0800': {}, '0004': {}}}, 'ZDeviceID': '0000', 'Status': '8043', 'RIA': '0', 'Model': {}}
cfe8 : {'Battery': {}, 'IEEE': '00158d0001a230fc', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '5829', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': {}, '0000': {}, '0405': 69.2, '0403': 3.441838084278419e+157}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.weather'}
553f : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
9d39 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
58b6 : {'Battery': {}, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d0001720b6d', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 14.5, '0000': {}, '0405': 44.4, '0403': 2.763919278789573e+133}}, 'Status': 'inDB', 'Heartbeat': '5934', 'RIA': '302', 'MacCapa': '80'}
7c37 : {'Battery': 91, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d000171dfa0', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.8, '0000': {}, '0405': 47.0, '0403': 'ff9303018102000fe8a37c370104030010002900022604930301800000059e005e0045'}}, 'Status': 'inDB', 'Heartbeat': '6016', 'RIA': '170', 'MacCapa': '80'}
3afd : {'Battery': {}, 'IEEE': {}, 'ProfileID': {}, 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Temp/Baro/Humi', 'Ep': {'01': {'0402': 21.8, '0405': 51.0, '0403': 2.849694588446895e+133}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': {}}
735f : {'IEEE': '00158d00016d1225', 'RIA': '20', 'ProfileID': {}, 'Type': 'Door', 'Battery': {}, 'Heartbeat': '5829', 'Ep': {'01': {'0000': {}, '0006': {}}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.sensor_magnet.aq2'}
8829 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
70bc : {'IEEE': '00158d0001a35ced', 'RIA': '160', 'ProfileID': {}, 'Type': 'Temp/Humi/Baro', 'Battery': 92, 'Heartbeat': '6005', 'Ep': {'01': {'0000': {}, '0402': 20.7, '0405': 47.4, '0403': 3.341574496578309e+157}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.weather'}
11f3 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
a510 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
cd75 : {'Battery': {}, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d000171f2a2', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.8, '0000': {}, '0405': 46.9, '0403': 'ff7e03018102000ff0a6cd7501040300100029000226077e0301800000054900890045'}}, 'Status': 'inDB', 'Heartbeat': '5987', 'RIA': '173', 'MacCapa': '80'}
958b : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
e643 : {'IEEE': '00158d0001a3e436', 'RIA': '29', 'ProfileID': {}, 'Type': 'Door', 'Battery': 91, 'Heartbeat': '5890', 'Ep': {'01': {'0000': {}, '0006': '01'}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.sensor_magnet.aq2'}
81cd : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
3832 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
832c : {'Battery': {}, 'IEEE': '00158d0001a4ba68', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '5829', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': {}, '0000': {}, '0405': {}, '0403': {}}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.weather'}
2abf : {'Battery': {}, 'IEEE': {}, 'ProfileID': '0104', 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Baro/Humi/Temp', 'Ep': {'01': {'0000': {}, '0405': 43.4, 'ffff': {}, '0003': {}, '0402': 22.1, '0403': 10.0}}, 'ZDeviceID': '5f01', 'Status': 'inDB', 'RIA': '10', 'Model': {}}
8cc3 : {'Battery': {}, 'IEEE': '84182600000c929a', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '0', 'Model': {}}
e680 : {'Battery': {}, 'IEEE': '00158d00010a6f06', 'ProfileID': '0104', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': 'Lux/ColorControl/', 'Ep': {'0a': {'0604': {}, '0501': {}, '170b': {}, '0204': {}, '0800': {}, '0600': {}, '0205': {}, '0400': {}, '0104': {}, '0000': {}, '0202': {}, '0504': {}, '0300': {}, '0107': {}, '0003': {}, '0304': {}, '1902': {}, '0004': {}}, '01': {'0604': {}, '0501': {}, '170b': {}, '0204': {}, '0800': {}, '0600': {}, '0205': {}, '0400': {}, '0104': {}, '0000': {}, '0202': {}, '0504': {}, '0300': {}, '0107': {}, '0003': {}, '0304': {}, '1902': {}, '0004': {}}, 'f2': {'0604': {}, '0501': {}, '0204': {}, '1800': {}, '0600': {}, '1902': {}, '0205': {}, '0400': {}, '0104': {}, '210b': {}, '0000': {}, '0202': {}, '0107': {}, '0300': {}, '0504': {}, '0003': {}, '0304': {}, '0800': {}, '0004': {}}}, 'ZDeviceID': '0840', 'Status': 'inDB', 'RIA': '10', 'Model': {}}
8460 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
922a : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
6f27 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
752a : {'Battery': {}, 'IEEE': '84182600000cb137', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
4c45 : {'Battery': {}, 'IEEE': '00158d0001a4a490', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '5829', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': {}, '0000': {}, '0405': {}, '0403': {}}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.weather'}
9c7a : {'Battery': {}, 'IEEE': '00212effff01b893', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
5de0 : {'Battery': {}, 'IEEE': '84182600000ca366', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {'03': {}}, 'ZDeviceID': {}, 'Status': '0043', 'RIA': '10', 'Model': {}}
edff : {'Battery': {}, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d0001713d21', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.6, '0000': {}, '0405': 47.2, '0403': 'ff9f03018102000fa1b2edff01040300100029000226099f030180000005b400740045'}}, 'Status': 'inDB', 'Heartbeat': '6006', 'RIA': '182', 'MacCapa': '80'}
4720 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
549f : {'IEEE': '00158d0001a4ba68', 'RIA': '168', 'ProfileID': {}, 'Type': 'Temp/Humi/Baro', 'Battery': {}, 'Heartbeat': '5957', 'Ep': {'01': {'0000': {}, '0402': 21.0, '0405': 45.4, '0403': 4.217050742393901e+128}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.weather'}
0275 : {'Battery': {}, 'IEEE': {}, 'ProfileID': '0104', 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Baro/Humi/Temp', 'Ep': {'01': {'0000': {}, '0405': 49.4, 'ffff': {}, '0003': {}, '0402': 22.4, '0403': 'ffc003018102000f1b0a02750104030010002900022730c00301800000052400e20043'}}, 'ZDeviceID': '5f01', 'Status': 'inDB', 'RIA': '10', 'Model': {}}
cf97 : {'Battery': {}, 'IEEE': '00212effff01b893', 'ProfileID': '0104', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': {}, 'Ep': {'01': {'0019': {}}, '50': {}}, 'ZDeviceID': '0005', 'Status': '8043', 'RIA': '10', 'Model': {}}
acbc : {'Battery': {}, 'IEEE': '00158d0001a4c7e8', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '5829', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 23.5, '0000': {}, '0405': 37.4, '0403': 'ff9903018102000f2919acbc010403001000290002272f990301800000054b008b0045'}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.weather'}
a2d1 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
ef82 : {'Battery': {}, 'IEEE': '00212effff01b893', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {'01': {}, '50': {}}, 'ZDeviceID': {}, 'Status': '0043', 'RIA': '10', 'Model': {}}
9e3d : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
0862 : {'IEEE': '00158d0001a4c7e8', 'RIA': '226', 'ProfileID': {}, 'Type': 'Temp/Humi/Baro', 'Battery': 90, 'Heartbeat': '6016', 'Ep': {'01': {'0000': {}, '0402': 19.7, '0405': 54.4, '0403': 'ff6303018102000f48de0862010403001000290002260863030180000005a000600045'}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.weather'}
4206 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
e030 : {'Battery': {}, 'IEEE': '00212effff01b893', 'ProfileID': '0104', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': {}, 'Ep': {'01': {'0019': {}}, '50': {}}, 'ZDeviceID': '0005', 'Status': '8043', 'RIA': '10', 'Model': {}}
ab98 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
9670 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
50ae : {'Battery': {}, 'IEEE': '84182600000c929a', 'ProfileID': 'c05e', 'MacCapa': '8e', 'Heartbeat': '5829', 'Type': 'Switch/', 'Ep': {'03': {'fc0f': {}, '0b04': {}, '0000': {}, '0006': {}, '0005': {}, '1000': {}, '0003': {}, '0004': {}}}, 'ZDeviceID': '0010', 'Status': 'inDB', 'RIA': '10', 'Model': '[size=150]plug.osram[/size]'}
d2d8 : {'Battery': 90, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d00017200e6', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.8, '0000': {}, '0405': 47.1, '0403': 4.217863047968351e+128}}, 'Status': 'inDB', 'Heartbeat': '6039', 'RIA': '168', 'MacCapa': '80'}
0b4e : {'IEEE': '84182600000c2f89', 'RIA': '0', 'ProfileID': 'c05e', 'Type': 'Switch/', 'Battery': {}, 'Heartbeat': '5830', 'Ep': {'03': {'fc0f': {}, '0b04': {}, '0000': {}, '0006': {}, '0005': {}, '1000': {}, '0003': {}, '0004': {}}}, 'Status': 'inDB', 'MacCapa': '8e', 'ZDeviceID': '0010', 'Model': '[size=150]plug.osram[/size]'}
460b : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
619a : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
d5b4 : {'IEEE': '84182600000ca366', 'RIA': '0', 'ProfileID': 'c05e', 'Type': 'Switch/', 'Battery': {}, 'Heartbeat': '5830', 'Ep': {'03': {'fc0f': {}, '0b04': {}, '0000': {}, '0006': {}, '0005': {}, '1000': {}, '0003': {}, '0004': {}}}, 'Status': 'inDB', 'MacCapa': '8e', 'ZDeviceID': '0010', 'Model': '[size=150]plug.osram[/size]'}
7622 : {'IEEE': '00158d000171bc58', 'RIA': '36', 'ProfileID': {}, 'Type': 'Motion', 'Battery': {}, 'Heartbeat': '5887', 'Ep': {'01': {'0406': '01', '0000': {}, '0006': {}}}, 'Status': 'inDB', 'MacCapa': '80', 'ZDeviceID': {}, 'Model': 'lumi.sensor_motion'}
13ee : {'Battery': {}, 'ProfileID': {}, 'Model': 'lumi.weather', 'ZDeviceID': {}, 'IEEE': '00158d0001a4b95e', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': 20.7, '0000': {}, '0405': 46.5, '0403': 2.76411891100755e+133}}, 'Status': 'inDB', 'Heartbeat': '6012', 'RIA': '159', 'MacCapa': '80'}
97fa : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
d0a1 : {'Battery': {}, 'IEEE': {}, 'ProfileID': {}, 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Temp/Baro/Humi', 'Ep': {'01': {'0402': 22.4, '0000': {}, '0405': 45.5, '0403': 10.0}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': {}}
794d : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
ee4d : {'Battery': {}, 'IEEE': '84182600000c929a', 'ProfileID': {}, 'MacCapa': '8e', 'Heartbeat': '0', 'Type': {}, 'Ep': {'03': {}}, 'ZDeviceID': {}, 'Status': '0043', 'RIA': '10', 'Model': {}}
5133 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
e7c2 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
a3ac : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '004d', 'RIA': '10', 'Model': {}}
2ca8 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
7f77 : {'Battery': {}, 'IEEE': {}, 'ProfileID': {}, 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Temp/Humi/Baro', 'Ep': {'01': {'0402': {}, '0000': {}, '0405': {}, '0403': {}}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.weather'}
4c42 : {'Battery': {}, 'IEEE': {}, 'ProfileID': {}, 'MacCapa': {}, 'Heartbeat': '5829', 'Type': 'Door', 'Ep': {'01': {'0000': {}, '0006': '01'}}, 'ZDeviceID': {}, 'Status': 'inDB', 'RIA': '10', 'Model': 'lumi.sensor_magnet.aq2'}
ef39 : {'Battery': {}, 'IEEE': '00158d000035f3a9', 'ProfileID': {}, 'MacCapa': '80', 'Heartbeat': '0', 'Type': {}, 'Ep': {}, 'ZDeviceID': {}, 'Status': '0045', 'RIA': '10', 'Model': {}}
deennoo
Messages : 4036
Inscription : 25 janv. 2015, 02:00

Re: [Béta]Plugin Zigate USB + Wifi

Message par deennoo »

Question Bete :

J'ai un inter Xiaomi Simple Touche a Batterie, il est reconnu ainsi : lumi.sensor_86sw1

Ce bouton envoie une commande On puis tout de suite apres une commande Off.

Dans L'app MiHome : c'est un simple bouton pas de choix de On ou Off mais juste : activé

Avec la Gateway nous avons créée pour cet inter un simple push ON : cela permet de rester toujours a On et dans les scripts LUA cela ce traduit par un simple :

Code : Tout sélectionner

If devicechanged[' lumi.sensor_86sw1'] then execute quelque chose

Avec le Plugin Zigate : il est reconnu comme un On/Off, du coup dans les logs :

Code : Tout sélectionner

2018-03-31 12:29:24	Off
2018-03-31 12:29:24	On
2018-03-31 12:14:06	Off
2018-03-31 12:14:06	On
2018-03-31 12:01:23	Off
2018-03-31 12:01:23	On
du coup dans les script lua :

Code : Tout sélectionner

commandArray = {}

if devicechanged['Zigate USB - Switch - 7524'] == 'Off' and otherdevices ['Plafonnier Loisir']=='Off' then
    commandArray['Plafonnier Loisir']='On' 
    
elseif devicechanged['Zigate USB - Switch - 7524'] == 'Off' and otherdevices ['Plafonnier Loisir']~='Off' then
    commandArray['Plafonnier Loisir']='Off' 

end

return commandArray
au lieu d'un simple

Code : Tout sélectionner

commandArray = {}

if devicechanged['Zigate USB - Switch - 7524']  then --si l'inter change d'etat alors 
    commandArray['Plafonnier Loisir']='Switch' --inverse l'etat du plafonnier loisir qui est 100% piloté par Domoticz

end

return commandArray
Pas que je sois faignant mais un peu quand meme, surtout que dans les debuts du plugin j'avais fait que cet type d'inter soit ainsi.

J'admet que la commande Off affichait un message d'erreur dans les logs en mode debug indiquant que le message n'etait pas reconnu...ce qui n'a que peu d'importance car cet inter envoie toujours d'abord On puis Off tout de suite apres, un Inter ON/OFF sera Toujours a Off donc, d'ou l'intert du Push On (Traduit par Appuie = On)

Enfin ce type de materiel semble envoyer un heartbeat que le plugin prend pour un changement d'etat :

Code : Tout sélectionner

2018-03-31 17:35:25.825 (Zigate USB) ReadCluster (8102) - ClusterId=0000 - MsgAttrID=ff01 - reception batteryLVL : 93 pour le device addr : 6f62
2018-03-31 17:35:25.825 (Zigate USB) Devices exist in DB. Unit=1
2018-03-31 17:35:25.825 (Zigate USB) CurrentnValue = 0
2018-03-31 17:35:25.825 (Zigate USB) CurrentsValue = Off
2018-03-31 17:35:25.826 (Zigate USB) BatteryLvl = 93
2018-03-31 17:35:25.826 (Zigate USB - Switch - 6f62) Updating device from 0:'Off' to have values 0:'Off'.
2018-03-31 17:35:25.835 (Zigate USB) ReadCluster (8102) - ClusterId=0000 - MsgAttrID=ff01 - reception batteryLVL : erreur de lecture pour le device addr : 6f62
2018-03-31 17:35:25.846 EventSystem: Script event triggered: Plaf Loisir
Et donc je suis dans le noir
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr
gregoiredore
Messages : 2
Inscription : 05 avr. 2018, 19:45

Re: [Béta]Plugin Zigate USB + Wifi

Message par gregoiredore »

Hello
Désolé pour la question de newbie... je viens de recevoir ma zigate et d'installer domoticz.
... à quel endroit ke trouve le dossier plugin ?
Merci !
zetof
Messages : 10
Inscription : 06 avr. 2018, 09:16

Re: [Béta]Plugin Zigate USB + Wifi

Message par zetof »

Moi aussi j'ai un peu galéré lorsque j'ai reçu ma zigate ;-)

Dans le répertoire plugins du répertoire domoticz (parfois /home/pi/domoticz)...
Le plugin ne marche qu'avec la version beta de domoticz...

Il faut décompresser la dernière version du plugin (2.3.3 actuellement ... dispo ici : https://github.com/sasu-drooz/Domoticz-Zigate/releases ) dans le répertoire (en renommant le repertoire décompressé Zigate sans numéro de version)...

Dans setup / Hardware, il faut ajouter la zigate en choisissant le bon serial port...

Au démarrage de domoticz, le plugin met la zigate en mode écoute pendant 250s (par défaut)... c'est à ce moment qu'il faut associer les modules zigbee... qui apparaissent alors dans la liste des devices...
gregoiredore
Messages : 2
Inscription : 05 avr. 2018, 19:45

Re: [Béta]Plugin Zigate USB + Wifi

Message par gregoiredore »

zetof a écrit :Moi aussi j'ai un peu galéré lorsque j'ai reçu ma zigate ;-)

Dans le répertoire plugins du répertoire domoticz (parfois /home/pi/domoticz)...
Le plugin ne marche qu'avec la version beta de domoticz...

Il faut décompresser la dernière version du plugin (2.3.3 actuellement ... dispo ici : https://github.com/sasu-drooz/Domoticz-Zigate/releases ) dans le répertoire (en renommant le repertoire décompressé Zigate sans numéro de version)...

Dans setup / Hardware, il faut ajouter la zigate en choisissant le bon serial port...

Au démarrage de domoticz, le plugin met la zigate en mode écoute pendant 250s (par défaut)... c'est à ce moment qu'il faut associer les modules zigbee... qui apparaissent alors dans la liste des devices...
Merci ! @zetof
Mon domoticz tourne sur un nas syno version bêta v3.9056
J'ai parcouru les répertoires :
- /usr/local/domoticz/ : pas de dossier plugin
:(
Répondre