[Evolution] Lixee Zlinly_TIC

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
brenten
Messages : 50
Inscription : 10 déc. 2019, 18:28

Re: [Evolution] Lixee Zlinly_TIC

Message par brenten »

ba si c'est "pas compliqué" pour intégrer les nouvelles fonctions dans le plugin, je peux tenter de le faire de mon coté.
il y a une doc sur le fonctionnement général du plugin ? :mrgreen:
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

es-tu bien sur la branche tel que c'etait indiqué ici: https://easydomoticz.com/forum/viewtopi ... 28#p105028
as-tu supprimer tous les devices domoticz relatifs à ce bignou et as-tu refais l'appairage

Pour ce qui est de la doc, le plugin est ecrit en python3 donc assez lisible et tu as pas mal de choses ici: https://github.com/zigbeefordomoticz/wi ... /Technical et notamment des diagrammes (pptx)
brenten
Messages : 50
Inscription : 10 déc. 2019, 18:28

Re: [Evolution] Lixee Zlinly_TIC

Message par brenten »

drop des devices et réappairage.

j'ai plus qu' a lire la doc
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

brenten a écrit : 04 juil. 2022, 13:46 drop des devices et réappairage.

j'ai plus qu' a lire la doc
ou déjà regarder les logs Domoticz et plugin voir si pas d'erreur, puis droper ici le export.json
brenten
Messages : 50
Inscription : 10 déc. 2019, 18:28

Re: [Evolution] Lixee Zlinly_TIC

Message par brenten »

log domoticz au réappairage

Code : Tout sélectionner

2022-07-04 15:23:36.135 Status: Zigate: Device Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01 with IEEE: 00158d0005d2a881 fully removed from the system.
2022-07-04 15:23:36.177 Status: Zigate: onDeviceRemoved - removing Device Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01 -> 00158d0005d2a881 in Zigate
2022-07-04 15:23:47.092 InfluxLink: value Instant,idx=62,name=pvrouter value=-1425
2022-07-04 15:23:53.197 Status: Zigate: Decode8047 - Leave response, LQI: 99 Status: 00 - [00] Success
2022-07-04 15:23:58.114 InfluxLink: value Instant,idx=62,name=pvrouter value=-1451
2022-07-04 15:24:03.134 InfluxLink: value Instant,idx=29,name=Puissance-produite value=1710.00
2022-07-04 15:24:03.650 InfluxLink: value Voltage,idx=27,name=tension-Linky value=233.50
2022-07-04 15:24:03.650 InfluxLink: value Instant,idx=28,name=PuissanceLinky value=1409.00
2022-07-04 15:24:09.164 InfluxLink: value Instant,idx=62,name=pvrouter value=-1446
2022-07-04 15:24:11.448 Status: Zigate: Request Accepting new Hardware for 240 seconds
2022-07-04 15:24:11.646 Status: Zigate: Accepting new Hardware: Enable (On)
2022-07-04 15:24:14.445 Status: Zigate: [None] NEW OBJECT: fd4e None
2022-07-04 15:24:14.607 Status: Zigate: [-] NEW OBJECT: fd4e Active Endpoint Response Ep: 01 LQI: 96
2022-07-04 15:24:14.608 Status: Zigate: [-] NEW OBJECT: fd4e Active Endpoint Response Ep: f2 LQI: 96
2022-07-04 15:24:14.614 Status: Zigate: [-] NEW OBJECT: fd4e Request Simple Descriptor for Ep: 01
2022-07-04 15:24:14.906 Status: Zigate: [-] NEW OBJECT: fd4e Simple Descriptor Response EP: 0x01 LQI: 99
2022-07-04 15:24:14.907 Status: Zigate: [-] NEW OBJECT: fd4e ProfileID 0104
2022-07-04 15:24:14.908 Status: Zigate: [-] NEW OBJECT: fd4e ZDeviceID 0053
2022-07-04 15:24:14.909 Status: Zigate: [-] NEW OBJECT: fd4e Application Version 0001
2022-07-04 15:24:14.910 Status: Zigate: [-] NEW OBJECT: fd4e Cluster IN Count: 06
2022-07-04 15:24:14.911 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 1: 0000 (Basic)
2022-07-04 15:24:14.912 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 2: 0003 (Identify)
2022-07-04 15:24:14.913 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 3: 0702
2022-07-04 15:24:14.914 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 4: 0b04 (Electrical Measurement)
2022-07-04 15:24:14.915 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 5: 0b01
2022-07-04 15:24:14.917 Status: Zigate: [-] NEW OBJECT: fd4e Cluster In 6: ff66
2022-07-04 15:24:14.917 Status: Zigate: [-] NEW OBJECT: fd4e Cluster OUT Count: 01
2022-07-04 15:24:14.919 Status: Zigate: [-] NEW OBJECT: fd4e Cluster Out 1: 0019 (Over-the-Air Upgrade)
2022-07-04 15:24:19.829 Zigate: is_domoticz_db_available: Fashion: True , Major: 2022, Minor: 1
2022-07-04 15:24:19.829 Zigate: is_domoticz_db_available: True
2022-07-04 15:24:19.120 Status: Zigate: [0] NEW OBJECT: fd4e Model Name: ZLinky_TIC
2022-07-04 15:24:19.121 Status: Zigate: [0] NEW OBJECT: fd4e Manufacturer Name: LiXee
2022-07-04 15:24:19.122 Status: Zigate: [None] NEW OBJECT: fd4e Request Node Descriptor
2022-07-04 15:24:20.184 InfluxLink: value Instant,idx=62,name=pvrouter value=-1481
2022-07-04 15:24:20.208 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01) 0:0.0; 0.0
2022-07-04 15:24:20.306 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Power-00158d0005d2a881-01) 0.0:0
2022-07-04 15:24:20.369 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_P1Meter_ZL-00158d0005d2a881-01) 0:0;0;0;0;0.0;0
2022-07-04 15:24:20.449 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Ampere3-00158d0005d2a881-01) 0:6.0;0;0
2022-07-04 15:24:20.459 Error: Zigate: zlinky_check_alarm - fd4e/01 no Subscription found !!!!
2022-07-04 15:24:27.675 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01) 0:0.0;13751557.0
2022-07-04 15:24:27.935 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01) 0:0.0;13584335.0
2022-07-04 15:24:27.961 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_P1Meter_ZL-00158d0005d2a881-01) 0:13584335;0;0;0;0.0;0
2022-07-04 15:24:29.591 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_Meter-00158d0005d2a881-01) 0:0.0;167222.0
2022-07-04 15:24:29.618 Zigate: UpdateDevice - (Zigate - ZLinky_TIC_P1Meter_ZL-00158d0005d2a881-01) 0:13584335;167222;0;0;0.0;0
export.json ( objet 24 )
export (2).zip
(3.52 Kio) Téléchargé 73 fois
Pas encore tout compris mais sinon j'ai rajouté les entrées dans Conf/Certified/Lixee/ZLinky_TIC.json
dans
"ff66": {
"Attributes": {

Code : Tout sélectionner

,
                                "0207": {
                                        "DataType": "21",
                                        "MinInterval": "0001",
                                        "MaxInterval": "012C",
                                        "TimeOut": "0000",
                                        "Change": "0001"
                                },
                               "0208": {
                                        "DataType": "21",
                                        "MinInterval": "0001",
                                        "MaxInterval": "012C",
                                        "TimeOut": "0000",
                                        "Change": "0001"
                                },
                                "0209": {
                                        "DataType": "21",
                                        "MinInterval": "0001",
                                        "MaxInterval": "012C",
                                        "TimeOut": "0000",
                                        "Change": "0001"
                                }
et sur "ReadAttributes"

Code : Tout sélectionner

,
                        "0207",
                        "0208",
                        "0209"
Dans Modules/readClusters.py

Code : Tout sélectionner

    elif MsgAttrID in ( "0208", ):
        value = int(decodeAttribute(self, MsgAttType, MsgClusterData))
        checkAndStoreAttributeValue(self, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, decodeAttribute(self, MsgAttType, MsgClusterData))
        self.log.logging(
            "Cluster",
            "Log",
            "ReadCluster %s - %s/%s Attribute: %s Type: %s Size: %s Data: %s / Value: %s" % (MsgClusterId, MsgSrcAddr, MsgSrcEp, MsgAttrID, MsgAttType, MsgAttSize, MsgClusterData, value),
            MsgSrcAddr,
        )

    elif MsgAttrID in ( "0209", ):
        value = int(decodeAttribute(self, MsgAttType, MsgClusterData))
        checkAndStoreAttributeValue(self, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, decodeAttribute(self, MsgAttType, MsgClusterData))
        self.log.logging(
            "Cluster",
            "Log",
            "ReadCluster %s - %s/%s Attribute: %s Type: %s Size: %s Data: %s / Value: %s" % (MsgClusterId, MsgSrcAddr, MsgSrcEp, MsgAttrID, MsgAttType, MsgAttSize, MsgClusterData, value),
            MsgSrcAddr,
        )
pour que ça crache un peu plus de log ( si j'a bien compris )
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

le export.json n'est pas le bon, il faut le RAW pour avoir les infos. Et notamment si le Configure Reporting a été bien mis en place
tu peux simplement jouer avec le mode debug (dans la page Tools>Debug et filtrer sur le NwkId du Zlinky), ca évitera de trop bouger le code pour simplement du loging
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

si tu modifies le fichier de conf et notamment les Configure Reporting, il faut relancer le plugin et refaire l'appairage en ayant supprimé les Domotciz widget au préalable
brenten
Messages : 50
Inscription : 10 déc. 2019, 18:28

Re: [Evolution] Lixee Zlinly_TIC

Message par brenten »

Voilà
export (3).zip
(13.8 Kio) Téléchargé 74 fois
pour le debug, je vais tester

pour le fichier de conf, c'est ce que j'avais fait avant ( suppression des widget puis relance et appairage. )
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

Alors donc le Configure Reporting se passe pas bien. En effet on devrait avoir
"xxxx": "00" ou xxxx est l'attribut et "00" le statut

2 hypothèses, l'attribut de supporte le reporting, où les paramètres donnés ne sont pas correct.

0xc1: An invalid or out-of-range parameter has been passed"

De la doc https://github.com/fairecasoimeme/Zlinky_TIC ,
0207 c'est un uint16 --> DataType 0x21
0208 c'est un int16 --> DataType 0x29
0209 ne peut pas être reportable
Screenshot 2022-07-04 at 15.47.48.png
Screenshot 2022-07-04 at 15.47.48.png (88.58 Kio) Consulté 1021 fois
voir avec le fabricant du ZLinky si avec le bon Data Type ca ne fonctionne pas.
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Evolution] Lixee Zlinly_TIC

Message par pipiche »

tu peux regarder ici: pour les questions

https://github.com/fairecasoimeme/Zlinky_TIC/issues
Répondre