Tasmota sensor 12.1.1.2 avec linky mode Standard --> Libteleinfo checkline error checksum...
-
@Samquad t'as essayé de changer le mode du noeud json en
always convert to javascript object
car derrière tu attends un objet JSSinon je viens de tester chez moi ça marche nickel en plus simple (c'est en standard mais même principe)
Juste le noeud de MQTT mettre
auto detect (parsed json, string or buffer)
-
@Charles
Je n'arrive pas à reproduire ton flow et obtenir les infos en debug.
Peux-tu m'envoyer le code de ton flow à coller dans Node red pour pouvoir tester?
Merci -
La trame MQT émise par le Wemos Tasmota est complète
Je visualise sa valeur avec MQTT explorer (837 caractères){"TIC":{"EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"PREF":12,"CCAIN":0,"STGE":"003A0101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","EASF04":0,"EASF05":0,"EASF10":0,"SMAXIN":0,"EASD04":"#EAIT","ERQ2":117250,"SMAXSN-1":5555,"SINSTI":0,"EASD01":"028634536FEASD02044464066","ERQ3":787775,"EAST":73129067,"SINSTR02042NRL@XRNH221125202319":5555,"SMAXSN":6553,"CCASN":1710,"SINSTR02006NRL@XRNH221126025342":4970,"SINSTS":2555,"PCOUP":12,"SMAXIN-1":2583,"DATE":"<NGTF","NGTF":" BASE ","EASD02":44477233,"CCAIN-1":0,"EAIT":6777077,"EASF01":"036626228HE@RF02026496683","CCASN-1":3686,"VTIC":2,"ERQ1":4304705,"IRMS1":11,"UMOY1":226,"URMS1":224,"ERQ4":4591690,"EASF01":36632382,"LTARF":" BASE ","EASF06":0,"EASD01":28651834}}
Par contre la trame reçue dans le noeud MQTT node red est incomplète:
elle n'affiche que les 501 premiers caractères et il manque les 337 caractères{"TIC":{"EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"PREF":12,"CCAIN":0,"STGE":"003A0101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","EASF04":0,"EASF05":0,"EASF10":0,"SMAXIN":0,"EASD04":"#EAIT","ERQ2":117250,"SMAXSN-1":5555,"SINSTI":0,"EASD01":"028634536FEASD02044464066","ERQ3":787775,"EAST":73128826,"SINSTR02042NRL@XRNH221125202319":5555,"SMAXSN":6553,"CCASN":1710,"SINSTR02006NRL@XRNH221126025342":497
C'est pour ça que je n'arrive pas à récupérer mes infos.
La trame lue par Node red est incomplète et je ne comprend pas pourquoi -
Dans tasmota sur la page https://tasmota.github.io/docs/Teleinfo/#configuring-teleinfo
j'ai vu une option non documentée EnergyConfig Limit
Je cherche à réduire la trame mqt envoyée par tasmota pour pouvoir la lire dans Node Red et traiter les infos qui m'intéressent.
Peux-tu m'indiquer le paramètre pour limiter les infos émises par tasmota à
SINSTS puissance apparante soutirée
EASF01 index comptage soutiré
IRMS1 courant instantané
EAIT index compteur production
SINSTI puissance apparente injectéeMerci
-
@Samquad le paramètre
limit
n'existe plus il a été remplacé parskip
mais ça ne change pas la taille de la trame, ça évite juste d'envoyer une trame toutes les secondes par exemple.Pour n'envoyer que les paramètres qui ont changés (donc trame plus courte) la commande c'est
energyconfig changed
Pour le flow node red c'est peut être l'affichage de la trame en debug dans node red qui tronque parce qu'il n'y a rien dans le flow juste une noeud MQTT et un noeud de fonction que j'ai décrit plus haut.
-
@Charles
le Noeud MQTT in de node red reçoit bien la trame en entier quand l'option energyconfig changed est activée.
trame reçue avec option changed
Quand energyconfig full est activé la trame est tronquée par le noeud MQTT in
--> La limitation semble provenir du noeud MQTT in dans Node red.
Si je colle la trame full dans le noeud inject je la visualise en entier dans un noeud debug msg.payload
Pour compiler mes données pour domoticz j'ai besoin de recevoir les données qui changent mais aussi les autres sur lesquels j'ai des conditions.Est-ce que tu peux m'aider à créer un Rule dans tamsota pour envoyer une trame mqt: tele/Teleinfo/SENSORperso limitée à ces données:
SINSTS puissance apparante soutirée
EASF01 index comptage soutiré
IRMS1 courant instantané
EAIT index compteur production
SINSTI puissance apparente injectéeJe ne sais pas comment écrire cette rule mais je pense que c'est peut-etre possible et que ça pourrait servir à beaucoup d'entre nous
merci
-
-
OK, j'abandonne l'idée des rules, je vais regarder la doc en Berry mais j'ai peur que ça dépasse mes compétences techniques.
Je pense que l'utilisation de node red c'est théoriquement plus simple.
Problème : il ne fonctionne pas à cause (je pense) d'un problème de la trame émise MQT --> Est-ce qu'on pourrait s'assurer que Tasmota fonctionne correctement?
J'utilise Tasmota V12.2.0.2 et j'ai des erreurs dans la console en permanence.
Pour reprendre depuis le début:
Mon compteur est configuré en mode standard, le Pitinfo V1.4 est tout neuf-
Connecté sur un RPI3 : le test picocom reçoit les trames TIC. elles semblent être conformes (voir les trames un peu plus haut dans le post)
-
Connecté sur wemos mini d1 tasmota , les données s'affichent
La trame MQT est envoyée mais est-ce qu'elle est conforme?
Entre chaque trame MQT je constate beaucoup d'erreurs dans la console
--> est-ce que c'est normale toutes ces erreurs?19:47:01.520 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44620995,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606767,"IRMS1":10,"URMS1":233,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCASN":5502,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341244,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":2387,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844561,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233}} 19:47:01.752 LibTeleinfo::checkLine Err checksum 0x45 != 0x46 19:47:01.754 LibTeleinfo::checkLine Err checksum 0x2C != 0x24 19:47:01.756 LibTeleinfo::checkLine Err checksum 0x22 != 0x25 19:47:01.762 LibTeleinfo::checkLine Err checksum 0x43 != 0x29 19:47:02.003 LibTeleinfo::checkLine Err checksum 0x27 != 0x2A 19:47:02.009 LibTeleinfo::checkLine Err checksum 0x26 != 0x30 19:47:02.016 LibTeleinfo::checkLine Err checksum 0x41 != 0x42 19:47:02.258 LibTeleinfo::checkLine Err checksum 0x5A != 0x5C 19:47:02.260 LibTeleinfo::checkLine Err checksum 0x54 != 0x55 19:47:02.264 LibTeleinfo::checkLine Err checksum 0x57 != 0x58 19:47:02.265 LibTeleinfo::checkLine Err checksum 0x39 != 0x3C 19:47:02.269 LibTeleinfo::checkLine Err checksum 0x40 != 0x45 19:47:02.503 LibTeleinfo::checkLine Err checksum 0x29 != 0x2F 19:47:02.505 LibTeleinfo::checkLine Err checksum 0x49 != 0x4A 19:47:02.506 LibTeleinfo::checkLine Err checksum 0x54 != 0x32 19:47:02.508 LibTeleinfo::checkLine Err checksum 0x52 != 0x4E 19:47:02.753 LibTeleinfo: _recv_idx = 128/128 buffer overflow 19:47:02.755 LibTeleinfo::checkLine Err checksum 0x34 != 0x39 19:47:02.757 LibTeleinfo::checkLine Err checksum 0x48 != 0x4A 19:47:03.003 LibTeleinfo::checkLine Err checksum 0x47 != 0x4A 19:47:03.007 LibTeleinfo::checkLine Err checksum 0x38 != 0x26 19:47:03.008 LibTeleinfo::checkLine Err checksum 0x24 != 0x27 19:47:03.014 LibTeleinfo::checkLine Err checksum 0x3E != 0x30 19:47:03.260 LibTeleinfo::checkLine Err checksum 0x3E != 0x50 19:47:03.503 LibTeleinfo::checkLine Err checksum 0x53 != 0x58 19:47:03.506 LibTeleinfo::checkLine Err checksum 0x34 != 0x4E 19:47:03.510 LibTeleinfo::checkLine Err checksum 0x3D != 0x2F 19:47:03.514 LibTeleinfo::checkLine Err checksum 0x30 != 0x35 19:47:03.753 LibTeleinfo::checkLine Err checksum 0x3C != 0x31 19:47:03.755 LibTeleinfo::checkLine Err checksum 0x4D != 0x4E 19:47:04.006 LibTeleinfo::checkLine Err checksum 0x4C != 0x50 19:47:04.008 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:47:04.505 LibTeleinfo::checkLine Err checksum 0x59 != 0x5C 19:47:04.507 LibTeleinfo::checkLine Err checksum 0x59 != 0x5B 19:47:04.515 LibTeleinfo::checkLine Err checksum 0x2A != 0x32 19:47:04.517 LibTeleinfo::checkLine Err checksum 0x4D != 0x4E 19:47:04.757 LibTeleinfo::checkLine Err checksum 0x46 != 0x4A 19:47:04.759 LibTeleinfo::checkLine Err checksum 0x33 != 0x35 19:47:05.019 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44620997,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606767,"IRMS1":10,"URMS1":233,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341247,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":2379,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844563,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":"04402DCB@RN0H220129190000"}} 19:47:05.258 LibTeleinfo::checkLine Err checksum 0x2D != 0x2F 19:47:05.260 LibTeleinfo::checkLine Err checksum 0x37 != 0x25 19:47:05.266 LibTeleinfo::checkLine Err checksum 0x2F != 0x30 19:47:05.509 LibTeleinfo::checkLine Err checksum 0x58 != 0x5A 19:47:05.752 LibTeleinfo::checkLine Err checksum 0x4F != 0x30 19:47:05.754 LibTeleinfo::checkLine Err checksum 0x48 != 0x4D 19:47:05.756 LibTeleinfo::checkLine Err checksum 0x58 != 0x32 19:47:05.760 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:05.761 LibTeleinfo::checkLine Err checksum 0x23 != 0x26 19:47:06.003 LibTeleinfo::checkLine Err checksum 0x54 != 0x4A 19:47:06.257 LibTeleinfo::checkLine Err checksum 0x3C != 0x09 19:47:06.259 LibTeleinfo::checkLine Err checksum 0x3B != 0x3C 19:47:06.261 LibTeleinfo::checkLine Err checksum 0x2F != 0x4B 19:47:06.503 LibTeleinfo::checkLine Err checksum 0x4D != 0x50 19:47:06.508 LibTeleinfo::checkLine Err checksum 0x26 != 0x30 19:47:06.516 LibTeleinfo::checkLine Err checksum 0x24 != 0x4B 19:47:06.518 LibTeleinfo::checkLine Err checksum 0x21 != 0x22 19:47:06.757 LibTeleinfo::checkLine Err checksum 0x22 != 0x30 19:47:06.759 LibTeleinfo::checkLine Err checksum 0x21 != 0x22 19:47:06.765 LibTeleinfo::checkLine Err checksum 0x31 != 0x58 19:47:07.005 LibTeleinfo::checkLine Err checksum 0x32 != 0x4E 19:47:07.009 LibTeleinfo::checkLine Err checksum 0x22 != 0x26 19:47:07.010 LibTeleinfo::checkLine Err checksum 0x2C != 0x2F 19:47:07.012 LibTeleinfo::checkLine Err checksum 0x4D != 0x35 19:47:07.506 LibTeleinfo::checkLine Err checksum 0x20 != 0x30 19:47:07.759 LibTeleinfo::checkLine Err checksum 0x32 != 0x22 19:47:07.761 LibTeleinfo::checkLine Err checksum 0x39 != 0x3A 19:47:08.006 LibTeleinfo::checkLine Err checksum 0x20 != 0x5C 19:47:08.009 LibTeleinfo::checkLine Err checksum 0x46 != 0x4D 19:47:08.011 LibTeleinfo::checkLine Err checksum 0x57 != 0x58 19:47:08.014 LibTeleinfo::checkLine Err checksum 0x2C != 0x32 19:47:08.016 LibTeleinfo::checkLine Err checksum 0x4B != 0x4E 19:47:08.258 LibTeleinfo::checkLine Err checksum 0x29 != 0x26 19:47:08.260 LibTeleinfo::checkLine Err checksum 0x2A != 0x2F 19:47:08.264 LibTeleinfo::checkLine Err checksum 0x4A != 0x3F 19:47:08.266 LibTeleinfo::checkLine Err checksum 0x3A != 0x3C 19:47:08.503 LibTeleinfo::checkLine Err checksum 0x24 != 0x26 19:47:08.519 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44620998,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606767,"IRMS1":8,"URMS1":234,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341247,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":1929,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844565,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502}} 19:47:08.755 LibTeleinfo::checkLine Err checksum 0x35 != 0x26 19:47:09.002 LibTeleinfo::checkLine Err checksum 0x4A != 0x4C 19:47:09.008 LibTeleinfo::checkLine Err checksum 0x2A != 0x30 19:47:09.010 LibTeleinfo::checkLine Err checksum 0x25 != 0x24 19:47:09.012 LibTeleinfo::checkLine Err checksum 0x20 != 0x22 19:47:09.258 LibTeleinfo::checkLine Err checksum 0x2C != 0x58 19:47:09.262 LibTeleinfo::checkLine Err checksum 0x32 != 0x4E 19:47:09.266 LibTeleinfo::checkLine Err checksum 0x22 != 0x26 19:47:09.267 LibTeleinfo::checkLine Err checksum 0x2B != 0x2F 19:47:09.503 LibTeleinfo::checkLine Err checksum 0x4A != 0x35 19:47:09.507 LibTeleinfo::checkLine Err checksum 0x41 != 0x42 19:47:09.756 LibTeleinfo::checkLine Err checksum 0x47 != 0x4E 19:47:10.002 LibTeleinfo::checkLine Err checksum 0x4D != 0x50 19:47:10.009 LibTeleinfo::checkLine Err checksum 0x3C != 0x28 19:47:10.011 LibTeleinfo::checkLine Err checksum 0x27 != 0x29 19:47:10.016 LibTeleinfo::checkLine Err checksum 0x4E != 0x32 19:47:10.018 LibTeleinfo::checkLine Err checksum 0x5F != 0x22 19:47:14.515 LibTeleinfo::checkLine Err checksum 0x24 != 0x28 19:47:14.762 LibTeleinfo::checkLine Err checksum 0x28 != 0x50 19:47:15.005 LibTeleinfo::checkLine Err checksum 0x32 != 0x58 19:47:15.009 LibTeleinfo::checkLine Err checksum 0x31 != 0x4E 19:47:15.256 LibTeleinfo::checkLine Err checksum 0x21 != 0x26 19:47:15.258 LibTeleinfo::checkLine Err checksum 0x2E != 0x2F 19:47:15.260 LibTeleinfo::checkLine Err checksum 0x4D != 0x35 19:47:15.514 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44620998,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606768,"IRMS1":8,"URMS1":236,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341250,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":1937,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844566,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502}} 19:47:15.753 LibTeleinfo::checkLine Err checksum 0x2C != 0x24 19:47:15.755 LibTeleinfo::checkLine Err checksum 0x22 != 0x25 19:47:15.760 LibTeleinfo::checkLine Err checksum 0x4C != 0x30 19:47:16.011 LibTeleinfo::checkLine Err checksum 0x59 != 0x5C 19:47:16.013 LibTeleinfo::checkLine Err checksum 0x53 != 0x56 19:47:16.257 LibTeleinfo::checkLine Err checksum 0x31 != 0x32 19:47:16.259 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:16.263 LibTeleinfo::checkLine Err checksum 0x2A != 0x2F 19:47:16.265 LibTeleinfo::checkLine Err checksum 0x47 != 0x4A 19:47:16.504 LibTeleinfo::checkLine Err checksum 0x5C != 0x42 19:47:16.753 LibTeleinfo::checkLine Err checksum 0x4B != 0x4F 19:47:17.001 LibTeleinfo::checkLine Err checksum 0x42 != 0x30 19:47:17.256 LibTeleinfo::checkLine Err checksum 0x3D != 0x5A 19:47:17.267 LibTeleinfo::checkLine Err checksum 0x46 != 0x4D 19:47:17.272 LibTeleinfo::checkLine Err checksum 0x2B != 0x32 19:47:17.502 LibTeleinfo::checkLine Err checksum 0x4B != 0x4E 19:47:17.504 LibTeleinfo::checkLine Err checksum 0x29 != 0x26 19:47:17.508 LibTeleinfo::checkLine Err checksum 0x47 != 0x4A 19:47:17.510 LibTeleinfo::checkLine Err checksum 0x31 != 0x35 19:47:17.772 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44621002,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606768,"IRMS1":8,"URMS1":235,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341252,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":1921,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844569,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502}} 19:47:18.004 LibTeleinfo::checkLine Err checksum 0x23 != 0x30 19:47:18.257 LibTeleinfo::checkLine Err checksum 0x40 != 0x29 19:47:18.265 LibTeleinfo::checkLine Err checksum 0x30 != 0x22 19:47:18.267 LibTeleinfo::checkLine Err checksum 0x21 != 0x23 19:47:18.274 LibTeleinfo::checkLine Err checksum 0x31 != 0x23 19:47:18.276 LibTeleinfo::checkLine Err checksum 0x33 != 0x36 19:47:18.278 LibTeleinfo::checkLine Err checksum 0x43 != 0x44 19:47:18.508 LibTeleinfo::checkLine Err checksum 0x56 != 0x58 19:47:18.514 LibTeleinfo::checkLine Err checksum 0x47 != 0x4E 19:47:18.515 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:18.517 LibTeleinfo::checkLine Err checksum 0x22 != 0x26 19:47:18.753 LibTeleinfo::checkLine Err checksum 0x52 != 0x4A 19:47:19.260 LibTeleinfo::checkLine Err checksum 0x35 != 0x26 19:47:19.267 LibTeleinfo::checkLine Err checksum 0x33 != 0x22 19:47:19.269 LibTeleinfo::checkLine Err checksum 0x38 != 0x3A 19:47:19.513 LibTeleinfo::checkLine Err checksum 0x36 != 0x4D 19:47:24.769 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44621005,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606768,"IRMS1":10,"URMS1":233,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341255,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":2383,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844572,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502}} 19:47:24.773 LibTeleinfo::checkLine Err checksum 0x36 != 0x39 19:47:25.004 LibTeleinfo::checkLine Err checksum 0x37 != 0x25 19:47:25.005 LibTeleinfo::checkLine Err checksum 0x23 != 0x26 19:47:25.011 LibTeleinfo::checkLine Err checksum 0x45 != 0x2A 19:47:25.257 LibTeleinfo::checkLine Err checksum 0x5E != 0x22 19:47:25.503 LibTeleinfo::checkLine Err checksum 0x4A != 0x59 19:47:25.504 LibTeleinfo::checkLine Err checksum 0x49 != 0x4D 19:47:25.506 LibTeleinfo::checkLine Err checksum 0x25 != 0x32 19:47:25.510 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:25.753 LibTeleinfo::checkLine Err checksum 0x52 != 0x4A 19:47:26.003 LibTeleinfo: _recv_idx = 128/128 buffer overflow 19:47:26.004 LibTeleinfo::checkLine Err checksum 0x57 != 0x09 19:47:26.007 LibTeleinfo::checkLine Err checksum 0x2C != 0x4A 19:47:26.257 LibTeleinfo::checkLine Err checksum 0x4D != 0x50 19:47:26.263 LibTeleinfo::checkLine Err checksum 0x3D != 0x27 19:47:26.264 LibTeleinfo::checkLine Err checksum 0x24 != 0x28 19:47:26.270 LibTeleinfo::checkLine Err checksum 0x57 != 0x30 19:47:26.505 LibTeleinfo::checkLine Err checksum 0x29 != 0x50 19:47:26.513 LibTeleinfo::checkLine Err checksum 0x33 != 0x58 19:47:26.755 LibTeleinfo::checkLine Err checksum 0x31 != 0x4E 19:47:26.759 LibTeleinfo::checkLine Err checksum 0x21 != 0x26 19:47:26.761 LibTeleinfo::checkLine Err checksum 0x2E != 0x2F 19:47:26.763 LibTeleinfo::checkLine Err checksum 0x4C != 0x35 19:47:27.259 LibTeleinfo::checkLine Err checksum 0x2D != 0x24 19:47:27.260 LibTeleinfo::checkLine Err checksum 0x22 != 0x25 19:47:27.504 LibTeleinfo::checkLine Err checksum 0x4C != 0x30 19:47:27.752 LibTeleinfo::checkLine Err checksum 0x2F != 0x42 19:47:27.753 LibTeleinfo::checkLine Err checksum 0x59 != 0x5C 19:47:27.755 LibTeleinfo::checkLine Err checksum 0x57 != 0x5A 19:47:27.759 LibTeleinfo::checkLine Err checksum 0x31 != 0x32 19:47:28.002 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:28.006 LibTeleinfo::checkLine Err checksum 0x2A != 0x2F 19:47:28.008 LibTeleinfo::checkLine Err checksum 0x46 != 0x4A 19:47:28.256 LibTeleinfo::checkLine Err checksum 0x5C != 0x42 19:47:28.270 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44621007,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606769,"IRMS1":10,"URMS1":233,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341257,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":2377,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF01":36844574,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502}} 19:47:28.502 LibTeleinfo::checkLine Err checksum 0x2D != 0x30 19:47:28.504 LibTeleinfo::checkLine Err checksum 0x40 != 0x30 19:47:28.512 LibTeleinfo::checkLine Err checksum 0x32 != 0x22 19:47:28.757 LibTeleinfo::checkLine Err checksum 0x58 != 0x5A 19:47:29.003 LibTeleinfo::checkLine Err checksum 0x46 != 0x4D 19:47:29.005 LibTeleinfo::checkLine Err checksum 0x58 != 0x32 19:47:29.009 LibTeleinfo::checkLine Err checksum 0x3F != 0x45 19:47:29.010 LibTeleinfo::checkLine Err checksum 0x22 != 0x26 19:47:29.257 LibTeleinfo::checkLine Err checksum 0x53 != 0x4A 19:47:29.753 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:47:29.759 LibTeleinfo::checkLine Err checksum 0x3F != 0x28 19:47:29.764 LibTeleinfo::checkLine Err checksum 0x48 != 0x30 19:47:30.005 LibTeleinfo::checkLine Err checksum 0x3C != 0x24 19:47:30.007 LibTeleinfo::checkLine Err checksum 0x2F != 0x30 19:47:30.012 LibTeleinfo::checkLine Err checksum 0x4D != 0x58 19:47:30.258 LibTeleinfo::checkLine Err checksum 0x47 != 0x4E 19:47:30.262 LibTeleinfo::checkLine Err checksum 0x45 != 0x2F 19:47:30.266 LibTeleinfo::checkLine Err checksum 0x30 != 0x35 19:47:30.504 LibTeleinfo::checkLine Err checksum 0x4D != 0x4E 19:47:30.754 LibTeleinfo::checkLine Err checksum 0x2F != 0x31 19:47:30.756 LibTeleinfo::checkLine Err checksum 0x37 != 0x25 19:47:30.758 LibTeleinfo::checkLine Err checksum 0x22 != 0x26 19:47:31.004 LibTeleinfo::checkLine Err checksum 0x2F != 0x30 19:47:31.011 LibTeleinfo::checkLine Err checksum 0x58 != 0x5A 19:47:31.260 LibTeleinfo::checkLine Err checksum 0x5F != 0x4D 19:47:31.266 LibTeleinfo::checkLine Err checksum 0x2B != 0x32 19:47:31.268 LibTeleinfo::checkLine Err checksum 0x47 != 0x4E 19:47:31.270 LibTeleinfo::checkLine Err checksum 0x44 != 0x45 19:47:31.502 LibTeleinfo::checkLine Err checksum 0x46 != 0x2F 19:47:31.508 LibTeleinfo::checkLine Err checksum 0x4D != 0x4E 19:47:31.510 LibTeleinfo::checkLine Err checksum 0x25 != 0x26 19:47:31.766 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF02":36496683,"EASF03":0,"EASF07":0,"EASF08":0,"EASD02":44621009,"EASD03":0,"EASD04":0,"ERQ3":787836,"ERQ4":4606769,"IRMS1":11,"URMS1":233,"PREF":12,"PCOUP":12,"SMAXSN-1":6036,"SINSTI":0,"CCAIN":0,"STGE":"003A4101","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":73341259,"EASF04":0,"EASF05":0,"EASF09":0,"EASF10":0,"EASD01":28720250,"EAIT":6778086,"ERQ1":4306558,"SINSTS":2538,"SMAXSN":7581,"SMAXIN":2405,"CCAIN-1":0,"EASF06":0,"ERQ2":117434,"CCASN-1":4176,"SMAXIN-1":1209,"UMOY1":233,"CCASN":5502,"EASF01":36844576}} 19:47:31.770 LibTeleinfo::checkLine Err checksum 0x3C != 0x09 19:47:31.772 LibTeleinfo::checkLine Err checksum 0x3B != 0x3C 19:47:32.003 LibTeleinfo::checkLine Err checksum 0x25 != 0x4E 19:47:32.005 LibTeleinfo::checkLine Err checksum 0x4D != 0x50 19:47:32.011 LibTeleinfo::checkLine Err checksum 0x26 != 0x30 19:47:32.257 LibTeleinfo::checkLine Err checksum 0x4C != 0x33 19:47:32.265 LibTeleinfo::checkLine Err checksum 0x22 != 0x30 19:47:32.267 LibTeleinfo::checkLine Err checksum 0x23 != 0x24 19:47:32.503 LibTeleinfo::checkLine Err checksum 0x31 != 0x58 19:47:32.504 LibTeleinfo::checkLine Err checksum 0x38 != 0x3C 19:47:32.506 LibTeleinfo::checkLine Err checksum 0x31 != 0x32 19:47:32.508 LibTeleinfo::checkLine Err checksum 0x43 != 0x45 19:47:32.512 LibTeleinfo::checkLine Err checksum 0x2A != 0x2F 19:47:32.753 LibTeleinfo::checkLine Err checksum 0x47 != 0x4A 19:47:32.754 LibTeleinfo::checkLine Err checksum 0x2B != 0x26 19:47:33.005 LibTeleinfo::checkLine Err checksum 0x54 != 0x50 19:47:33.257 LibTeleinfo::checkLine Err checksum 0x20 != 0x24 19:47:33.263 LibTeleinfo::checkLine Err checksum 0x48 != 0x30 19:47:33.270 LibTeleinfo::checkLine Err checksum 0x2D != 0x22 19:47:33.505 LibTeleinfo::checkLine Err checksum 0x50 != 0x24 19:47:33.506 LibTeleinfo::checkLine Err checksum 0x2F != 0x30 19:47:33.514 LibTeleinfo::checkLine Err checksum 0x56 != 0x58 19:47:33.755 LibTeleinfo::checkLine Err checksum 0x47 != 0x4E 19:47:33.757 LibTeleinfo::checkLine Err checksum 0x44 != 0x45 19:47:33.759 LibTeleinfo::checkLine Err checksum 0x45 != 0x2F
J'espère que ces infos peuvent t'aider à cibler le problème.
Est-ce que c'est le contenu des données TIC qui provoque ces erreurs?
Mon compteur est mono / tarif base/ avec revente de surplus solaire (injection) -
-
@Samquad compliqué puisque le module semble fonctionner, mais sous tasmota tu as trop d'erreurs.
Tu ne veux pas essayer juste la base :
- juste le PI Tinfo, Ton ESP32 et le programme passthru check que les trames sont correctes à l'oeil
- Ensuite si ça marche, même montage mais avec Tasmota dernière version
Déjà avec la dernière version les étiquettes LTARF et NGTF sont trimmées ce qui doit réduire la taille
PS : question con pourquoi tu n'as pas pris un shield téléinfo Wemos, ça solutionne déjà tout problème potentiel de connectique entre le WeMos et le PITinfo ?
-
J'ai fait les essais.
ESP32 avec pitinfo et passthru check voici les captures d'écrans
je ne sais pas si c'est normal mais c'est impossible de copier coller les trames dans un bloc note.
Même montage avec Tasmota dernière version (toujours sur ESP32)
Les valeurs s'affichent sur la page principale, mais j'ai des erreurs checksum et buffer overflow comme sur le wemos tasmota19:17:33.182 RSL: SENSOR = {"TIC":{"EAST":73562674,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625402,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4235,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768300,"EASF06":0,"EASF01":37065991,"CCASN":3496}} 19:17:33.400 LibTeleinfo::checkLine Err checksum 0x37 != 0x30 19:17:33.405 LibTeleinfo::checkLine Err checksum 0x41 != 0x2A 19:17:33.656 LibTeleinfo::checkLine Err checksum 0x25 != 0x26 19:17:33.900 LibTeleinfo::checkLine Err checksum 0x53 != 0x56 19:17:33.904 LibTeleinfo::checkLine Err checksum 0x4A != 0x4C 19:17:33.906 LibTeleinfo::checkLine Err checksum 0x4D != 0x44 19:17:33.909 LibTeleinfo::checkLine Err checksum 0x22 != 0x24 19:17:34.149 LibTeleinfo::checkLine Err checksum 0x40 != 0x44 19:17:34.154 LibTeleinfo::checkLine Err checksum 0x53 != 0x30 19:17:34.409 RSL: SENSOR = {"TIC":{"EAST":73562679,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625402,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4235,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768306,"EASF06":0,"EASF01":37065996,"CCASN":3496}} 19:17:34.679 LibTeleinfo::checkLine Err checksum 0x23 != 0x26 19:17:34.680 LibTeleinfo::checkLine Err checksum 0x3B != 0x28 19:17:34.687 LibTeleinfo::checkLine Err checksum 0x40 != 0x48 19:17:34.689 LibTeleinfo::checkLine Err checksum 0x21 != 0x22 19:17:34.929 LibTeleinfo::checkLine Err checksum 0x4C != 0x23 19:17:34.930 LibTeleinfo::checkLine Err checksum 0x55 != 0x56 19:17:34.937 LibTeleinfo::checkLine Err checksum 0x21 != 0x5B 19:17:35.178 LibTeleinfo::checkLine Err checksum 0x4E != 0x29 19:17:35.182 LibTeleinfo::checkLine Err checksum 0x5F != 0x23 19:17:35.184 LibTeleinfo::checkLine Err checksum 0x20 != 0x24 19:17:35.186 LibTeleinfo::checkLine Err checksum 0x37 != 0x2A 19:17:35.707 RSL: SENSOR = {"TIC":{"EAST":73562679,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625402,"IRMS1":18,"URMS1":231,"PREF":12,"PCOUP":12,"SINSTS":4226,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768306,"EASF06":0,"EASF01":37065996,"CCASN":3496}} 19:17:35.771 LibTeleinfo::checkLine Err checksum 0x38 != 0x24 19:17:35.775 LibTeleinfo::checkLine Err checksum 0x40 != 0x29 19:17:35.777 LibTeleinfo::checkLine Err checksum 0x29 != 0x2A 19:17:35.889 LibTeleinfo::checkLine Err checksum 0x5B != 0x22 19:17:35.891 LibTeleinfo::checkLine Err checksum 0x20 != 0x23 19:17:35.892 LibTeleinfo::checkLine Err checksum 0x23 != 0x26 19:17:36.139 LibTeleinfo::checkLine Err checksum 0x42 != 0x43 19:17:36.141 LibTeleinfo::checkLine Err checksum 0x55 != 0x3C 19:17:36.143 LibTeleinfo::checkLine Err checksum 0x48 != 0x4C 19:17:36.388 LibTeleinfo::checkLine Err checksum 0x4E != 0x44 19:17:36.392 LibTeleinfo::checkLine Err checksum 0x5E != 0x44 19:17:36.395 LibTeleinfo::checkLine Err checksum 0x5F != 0x3C 19:17:36.638 LibTeleinfo::checkLine Err checksum 0x24 != 0x26 19:17:36.641 LibTeleinfo::checkLine Err checksum 0x41 != 0x42 19:17:36.652 RSL: SENSOR = {"TIC":{"EAST":73562681,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625402,"IRMS1":18,"URMS1":231,"PREF":12,"PCOUP":12,"SINSTS":4226,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768306,"EASF06":0,"EASF01":37065996,"CCASN":3496}} 19:17:36.715 LibTeleinfo::checkLine Err checksum 0x33 != 0x36 19:17:36.925 LibTeleinfo::checkLine Err checksum 0x40 != 0x30 19:17:36.931 LibTeleinfo::checkLine Err checksum 0x32 != 0x22 19:17:37.175 LibTeleinfo::checkLine Err checksum 0x4C != 0x4F 19:17:37.183 LibTeleinfo::checkLine Err checksum 0x42 != 0x43 19:17:37.427 LibTeleinfo::checkLine Err checksum 0x4B != 0x4C 19:17:37.429 LibTeleinfo::checkLine Err checksum 0x26 != 0x29 19:17:37.434 LibTeleinfo::checkLine Err checksum 0x42 != 0x44 19:17:37.666 LibTeleinfo::checkLine Err checksum 0x25 != 0x2A 19:17:37.988 RSL: SENSOR = {"TIC":{"EAST":73562681,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625403,"IRMS1":18,"URMS1":231,"PREF":12,"PCOUP":12,"SINSTS":4226,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768309,"EASF06":0,"EASF01":37065999,"CCASN":"03486DCCASN0H220202183000"}} 19:17:38.051 LibTeleinfo::checkLine Err checksum 0x45 != 0x46 19:17:38.054 LibTeleinfo::checkLine Err checksum 0x28 != 0x24 19:17:38.058 LibTeleinfo::checkLine Err checksum 0x42 != 0x29 19:17:38.060 LibTeleinfo::checkLine Err checksum 0x28 != 0x2A 19:17:38.071 LibTeleinfo::checkLine Err checksum 0x5F != 0x22 19:17:38.441 LibTeleinfo::checkLine Err checksum 0x31 != 0x43 19:17:38.444 LibTeleinfo::checkLine Err checksum 0x2D != 0x4C 19:17:38.682 LibTeleinfo::checkLine Err checksum 0x44 != 0x29 19:17:38.686 LibTeleinfo::checkLine Err checksum 0x20 != 0x23 19:17:38.687 LibTeleinfo::checkLine Err checksum 0x5F != 0x24 19:17:38.689 LibTeleinfo::checkLine Err checksum 0x44 != 0x2A 19:17:38.701 LibTeleinfo::checkLine Err checksum 0x3E != 0x3F 19:17:38.934 LibTeleinfo::checkLine Err checksum 0x41 != 0x42 19:17:38.949 RSL: SENSOR = {"TIC":{"EAST":73562683,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625403,"IRMS1":18,"URMS1":231,"PREF":12,"PCOUP":12,"SINSTS":4226,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768310,"EASF06":0,"EASF01":37066000,"CCASN":3496}} 19:17:39.168 LibTeleinfo::checkLine Err checksum 0x37 != 0x26 19:17:39.170 LibTeleinfo::checkLine Err checksum 0x25 != 0x27 19:17:39.421 LibTeleinfo::checkLine Err checksum 0x35 != 0x22 19:17:39.422 LibTeleinfo::checkLine Err checksum 0x48 != 0x4B 19:17:39.427 LibTeleinfo::checkLine Err checksum 0x4F != 0x50 19:17:39.670 LibTeleinfo::checkLine Err checksum 0x5C != 0x43 19:17:39.674 LibTeleinfo::checkLine Err checksum 0x5D != 0x4C 19:17:39.920 LibTeleinfo::checkLine Err checksum 0x3C != 0x23 19:17:39.924 LibTeleinfo::checkLine Err checksum 0x41 != 0x44 19:17:40.176 RSL: SENSOR = {"TIC":{"EAST":73562683,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625403,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4226,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768311,"EASF06":0,"EASF01":37066001,"CCASN":3496}} 19:17:40.241 LibTeleinfo::checkLine Err checksum 0x2F != 0x50 19:17:40.401 LibTeleinfo::checkLine Err checksum 0x22 != 0x24 19:17:40.404 LibTeleinfo::checkLine Err checksum 0x43 != 0x29 19:17:40.405 LibTeleinfo::checkLine Err checksum 0x27 != 0x2A 19:17:40.649 LibTeleinfo::checkLine Err checksum 0x58 != 0x22 19:17:40.656 LibTeleinfo::checkLine Err checksum 0x54 != 0x37 19:17:40.657 LibTeleinfo::checkLine Err checksum 0x41 != 0x42 19:17:40.659 LibTeleinfo::checkLine Err checksum 0x5B != 0x5C 19:17:40.902 LibTeleinfo::checkLine Err checksum 0x57 != 0x5B 19:17:40.904 LibTeleinfo::checkLine Err checksum 0x39 != 0x3C 19:17:40.908 LibTeleinfo::checkLine Err checksum 0x3F != 0x44 19:17:40.912 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:17:41.149 LibTeleinfo::checkLine Err checksum 0x49 != 0x32 19:17:41.152 LibTeleinfo::checkLine Err checksum 0x55 != 0x42 19:17:41.409 RSL: SENSOR = {"TIC":{"EAST":73562687,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625403,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4228,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768311,"EASF06":0,"EASF01":37066001,"CCASN":3496}} 19:17:41.474 LibTeleinfo::checkLine Err checksum 0x2C != 0x24 19:17:41.476 LibTeleinfo::checkLine Err checksum 0x23 != 0x26 19:17:41.686 LibTeleinfo::checkLine Err checksum 0x45 != 0x2A 19:17:41.688 LibTeleinfo::checkLine Err checksum 0x5E != 0x22 19:17:41.693 LibTeleinfo::checkLine Err checksum 0x5A != 0x30 19:17:41.939 LibTeleinfo::checkLine Err checksum 0x3A != 0x57 19:17:41.940 LibTeleinfo::checkLine Err checksum 0x3F != 0x43 19:17:41.942 LibTeleinfo::checkLine Err checksum 0x4E != 0x4C 19:17:42.184 LibTeleinfo::checkLine Err checksum 0x41 != 0x44 19:17:42.188 LibTeleinfo::checkLine Err checksum 0x38 != 0x44 19:17:42.436 LibTeleinfo: _recv_idx = 128/128 buffer overflow 19:17:42.439 LibTeleinfo::checkLine Err checksum 0x34 != 0x39 19:17:42.685 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:17:42.689 LibTeleinfo::checkLine Err checksum 0x3F != 0x28 19:17:42.691 LibTeleinfo::checkLine Err checksum 0x26 != 0x29 19:17:43.075 LibTeleinfo::checkLine Err checksum 0x2A != 0x30 19:17:43.083 LibTeleinfo::checkLine Err checksum 0x4F != 0x30 19:17:43.086 LibTeleinfo::checkLine Err checksum 0x59 != 0x5C 19:17:43.088 LibTeleinfo::checkLine Err checksum 0x4B != 0x4D 19:17:43.092 LibTeleinfo::checkLine Err checksum 0x57 != 0x5B 19:17:43.104 LibTeleinfo::checkLine Err checksum 0x38 != 0x3C 19:17:43.166 LibTeleinfo::checkLine Err checksum 0x59 != 0x44 19:17:43.418 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:17:43.419 LibTeleinfo::checkLine Err checksum 0x42 != 0x44 19:17:43.422 LibTeleinfo::checkLine Err checksum 0x40 != 0x42 19:17:43.675 RSL: SENSOR = {"TIC":{"EAST":73562688,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625404,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4228,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768315,"EASF06":0,"EASF01":37066005,"CCASN":3496}} 19:17:43.736 LibTeleinfo::checkLine Err checksum 0x2C != 0x24 19:17:43.897 LibTeleinfo::checkLine Err checksum 0x22 != 0x25 19:17:43.901 LibTeleinfo::checkLine Err checksum 0x4C != 0x30 19:17:44.153 LibTeleinfo::checkLine Err checksum 0x25 != 0x41 19:17:44.155 LibTeleinfo::checkLine Err checksum 0x59 != 0x5C 19:17:44.157 LibTeleinfo::checkLine Err checksum 0x4E != 0x51 19:17:44.396 LibTeleinfo::checkLine Err checksum 0x4B != 0x4C 19:17:44.399 LibTeleinfo::checkLine Err checksum 0x4C != 0x44 19:17:44.403 LibTeleinfo::checkLine Err checksum 0x21 != 0x24 19:17:44.404 LibTeleinfo::checkLine Err checksum 0x40 != 0x44 19:17:44.646 LibTeleinfo::checkLine Err checksum 0x5C != 0x42 19:17:44.906 RSL: SENSOR = {"TIC":{"EAST":73562690,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625404,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4228,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768317,"EASF06":0,"EASF01":37066007,"CCASN":3496}} 19:17:44.965 LibTeleinfo::checkLine Err checksum 0x33 != 0x36 19:17:44.968 LibTeleinfo::checkLine Err checksum 0x40 != 0x30 19:17:45.184 LibTeleinfo::checkLine Err checksum 0x32 != 0x22 19:17:45.191 LibTeleinfo::checkLine Err checksum 0x4C != 0x4F 19:17:45.434 LibTeleinfo::checkLine Err checksum 0x3F != 0x43 19:17:45.437 LibTeleinfo::checkLine Err checksum 0x5B != 0x4C 19:17:45.795 LibTeleinfo::checkLine Err checksum 0x40 != 0x44 19:17:45.796 LibTeleinfo::checkLine Err checksum 0x5F != 0x23 19:17:45.798 LibTeleinfo::checkLine Err checksum 0x3A != 0x44 19:17:45.938 RSL: SENSOR = {"TIC":{"EAST":73562690,"EASF05":0,"EASF07":0,"EASF10":0,"EASD01":28794373,"ERQ1":4307600,"ERQ2":117434,"ERQ3":787844,"SMAXSN":7504,"CCASN-1":3666,"UMOY1":224,"PRM":2147483647,"ADSC":"031861721681","VTIC":2,"EASF02":36496683,"CCAIN":0,"STGE":"003A4101","RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"NGTF":"BASE","EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD03":0,"EASD04":0,"ERQ4":4625405,"IRMS1":18,"URMS1":232,"PREF":12,"PCOUP":12,"SINSTS":4228,"SINSTI":0,"LTARF":"BASE","EAIT":6778140,"SMAXIN":0,"CCAIN-1":0,"SMAXSN-1":8661,"SMAXIN-1":0,"EASD02":44768318,"EASF06":0,"EASF01":37066008,"CCASN":3496}} 19:17:46.154 LibTeleinfo::checkLine Err checksum 0x37 != 0x50 19:17:46.156 LibTeleinfo::checkLine Err checksum 0x20 != 0x24 19:17:46.160 LibTeleinfo::checkLine Err checksum 0x48 != 0x30 19:17:46.411 LibTeleinfo::checkLine Err checksum 0x59 != 0x22 19:17:46.419 LibTeleinfo::checkLine Err checksum 0x36 != 0x37 19:17:46.658 LibTeleinfo::checkLine Err checksum 0x57 != 0x5B 19:17:46.664 LibTeleinfo::checkLine Err checksum 0x27 != 0x29
J'espère que les captures vont te permettre d'identifier le problème
-
@Charles
Le format Shield n'existait pas quand j'ai acheté mon premier module téléinfo.
Je n'ai pas pris un shield téléinfo Wemos car j'ai créé ma propre carte sur le standard du modèle pour RPI. et finalement ça m'est utile pour tester facilement avec un RPI et picocom.Je ne pense pas que mon cablage soit en cause.
Depuis que j'ai reçu le Pitinfo V1.4, j'ai l'impression que les trames sont complètes? -
La trame MQT émise par tasmota téléinfo dépasse la capacité max des messages dans NodeRed qui est limitée par défaut à 1000
On m'a aidé pour augmenter cette valeur dans la configuration de NodeRed:
Editer le fichier settings.js:sudo nano /home/pi/.node-red/settings.js
augmenter le paramètre:
"debugMaxLength: 2000"Sauvegarder et relancer NodeRed
La trame affichée en débug s'affiche sous cette forme:
Object: Topic: "tele/TeleInfo/SENSOR" Payload: buffer[1454] String {"TIC":{"EASF03":0,"EASF04":0,"EASF08":0,"EASF09":0,"EASD04":0,"NJOURF":0,"NJOURF+1":0,"EASF02":36496683,"PRM":2147483647,"RELAIS":0,"NTARF":1,"EASF05":0,"SINSTR06020NRL@XRNH221204190514":9991,"PBNTP02\SINSTS":8512,"DATE":" <NGTF","EASF10":0,"ADSC":"031861721681","SINSTR02042NRL@XRNH221207100410":7417,"EASF01":"037424628HD@RF02026496683","EASD03":0,"SINSTS00620NRL@XRNH220208194823":10315,"SINSTR04202NRL@XRNH221208195016":10387,"EASD01":"029125668FEASD02044446480","SINSTI":534,"SINSTR00800NRL@XRNH221209123344":7944,"SINSTR04220NRL@XRNH221209123344":7944,"SINSTS06002NRL@XRNH220209194457":8468,"SINSTR04200PRL@XRNH221210104936":13237,"EAIT":"004300868\ERQ2","SINSTS02222NRL@XRNH220210104936":13237,"SINSTR02222NRL@XRNH221211000811":8456,"EASF07":0,"CCAIN":"00000CB@HN0H221212083000","IRMS1":"0100URMS1220>PRDF02BPBNTP02\RHNRTR02284","SMAXIN":0,"PREF":12,"ERQ2":117445,"ERQ3":788456,"ERQ1":"004202002HDRP2000017445","SINSTI":0,"SMAXSN-1":11541,"EAIT":6780905,"ERQ4":"0344URMS1","STGE":"003A0101","EASD04":"#EAIT","CCAIN":0,"PCOUP":12,"EASD02":45505640,"SINSTS":7339,"EAST":74658330,"SMAXIN-1":2623,"CCASN":8484,"CCAIN-1":0,"SMAXSN":11918,"CCASN-1":5768,"UMOY1":211,"VTIC":2,"URMS1":210,"ERQ4":4714036,"LTARF":" BASE ","EASD01":29152690,"ERQ1":4312022,"EASF01":38161647,"NGTF":" BASE ","EASF06":0,"IRMS1":"200<PREF02BPCNTP02\SHNRTR06233"}}
Par contre elle n'est pas reconnue comme Json object donc les champs ne peuvent pas être récupérés avec une fonction de ce type:
// Récupération des données //Préparation requête pour Domoticz var xvalue = {}; xvalue = msg.payload.TIC.SINSTS; msg.payload = xvalue return msg;
Le problème semble venir de l'impossibilité d'interpréter les charactères représentés par des dans plusieurs noms de données comme par exemple:
SINSTR06020NRL@XRNH221204190514
Ces trames apparaissent dans les log que j'ai fait avec le RPI et picocom donc on ne peut pas remettre en cause le cablage du module sur le RPI
Qu'est ce qu'on peut faire?
-
J'ai galéré mais j'ai finalement réussi à créer un flow node Red pour interpréter la trame MQT émise par tasmota téléinfo en mode standard pour envoyer les infos dans Domoticz.
La trame MQT que je reçois n'est pas exploitable json objet: le noeux json indique des erreurs contenues dans la trame.J'ai été obligé de cleaner la trame MQT string pour supprimer tous les charactères non supportés avec un msg.payload.replace()
Voici le code de mon flow:
[{"id":"34f140f8.a2bfa","type":"tab","label":"TeleInfo","disabled":false,"info":""},{"id":"e777bc5.9f4d44","type":"comment","z":"34f140f8.a2bfa","name":"Instructions de paramétrage pour domoticz dans l'ESP Tasmota-sensor-Teleinfo il faut activer \"SetOption108 1\"","info":"Dans domoticz:\nCréer le matériel téléinfo en USB pour créer automatiquement les capteurs de mesure\n\nModifier le matériel en dummy pour rendre les capteurs virtuels\nRelever l'IDX de chaque capteur virtuel dans domoticz\n\nDans L'ESP Tasmota:\n\nParamétrer tasmota sensor avec telefinfo et vérifier que les données du compteur sont affichées sur la page web de l'ESP\nConfiguration MQTT: Renseigner Topic= TeleInfo\n\ndans le menu Console:\n\nSaisir la commande setOption108 1\n\n_______________________________\npour info:\n0 = Teleinfo telemetry into Energy MQTT JSON (default)\n1 = Teleinfo raw data only\n_______________________________\n\nVérifier la présence de trames qui commencent par:--> MQT: tele/TeleInfo/RESULT = {...\n\nDans Node-Red:\n\nDans chaque bloc fonction \"Décode Trame...\"\"\nRenseignger l'IDX Domoticz de chaque capteur virtuel associé\nAdapter les infos et les seuils au contrat\n\nDans chaque bloc \"tele/TeleInfo\" et \"mqtt/in\"\nAdapter les paramètres au serveur domtoticz\nDéployer le Flow\n\nDans Domoticz:\n\nVérifier dans les log si les messages MQTT sont bien réceptionnés\nVérifier si les capteurs affichent les données\n","x":410,"y":40,"wires":[]},{"id":"4928abc7.9f50b4","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Total","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\nXValue = \"\" + msg.payload.TIC.EASF01 + \";0;0;0;\" + msg.payload.TIC.SINSTS + \";0\";\n\nmsg.payload = {};\nmsg.payload.idx = 69;\nmsg.payload.svalue = XValue;\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":140,"wires":[["566c815d.a5a5d","4e116d.9133ce94"]]},{"id":"566c815d.a5a5d","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":100,"wires":[]},{"id":"4e116d.9133ce94","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":140,"wires":[]},{"id":"a93412bc.bf78d","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":380,"wires":[]},{"id":"ea2010a9.53948","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Charge","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\n//XValue= \"\"+ Math.round((msg.payload.IINST/msg.payload.ISOUSC)*100);\n\nif (msg.payload.TIC.SINSTS>0) {\n XValue= \"\"+ Math.round((msg.payload.TIC.IRMS1/60)*100);\n}\nelse XValue= \"0\";\n\nmsg.payload = {};\nmsg.payload.idx = 71;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":300,"wires":[["3b94d44c.87a34c","f45557f4.05a298"]]},{"id":"f45557f4.05a298","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":300,"wires":[]},{"id":"3b94d44c.87a34c","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":280,"wires":[]},{"id":"91aaccbd.44a7","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Current","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\n\n//XValue= msg.payload.IINST+\";0;0\";\n\nif (msg.payload.TIC.SINSTS>0) {\n XValue= msg.payload.TIC.IRMS1+\";0;0\";\n}\nelse XValue= \"0;0;0\";\n\nmsg.payload = {};\nmsg.payload.idx = 99;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":380,"wires":[["72ded3b2.4e5e1c","a93412bc.bf78d"]]},{"id":"72ded3b2.4e5e1c","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":360,"wires":[]},{"id":"aa682529.bceab8","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":460,"wires":[]},{"id":"3906e2c8.df91ce","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Gestion alerte courant","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\nif ((msg.payload.TIC.IRMS1<48 && msg.payload.TIC.SINSTS>0) || msg.payload.TIC.SINSTS<=0) {\n XValue= \"(1) < 80% de 60A souscrits\";\n}\nelse if (msg.payload.TIC.IRMS1 >= 48 && msg.payload.TIC.IRMS1 < 52 && msg.payload.TIC.SINSTS>0) {\n XValue= \"(2) >80% et <90% de 60A souscrits\";\n}\nelse XValue= \"(3) >90% de 60A souscrits\";\n\nmsg.payload = {};\nmsg.payload.idx = 73;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":460,"wires":[["899a138.e5c52f","aa682529.bceab8"]]},{"id":"899a138.e5c52f","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":440,"wires":[]},{"id":"d6e1107c.8379","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":540,"wires":[]},{"id":"c7d7f48.21e2a08","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Current en Surplus","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\n\n//XValue= msg.payload.IINST+\";0;0\";\n\nif (msg.payload.TIC.SINSTS===0) {\n XValue= msg.payload.TIC.IRMS1+\";0;0\";\n}\nelse XValue= \"0;0;0\";\n\nmsg.payload = {};\nmsg.payload.idx = 96;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":540,"wires":[["54692d1e.95f5a4","d6e1107c.8379"]]},{"id":"54692d1e.95f5a4","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":520,"wires":[]},{"id":"d994fe9.eb362","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame KWh","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\nXValue= msg.payload.TIC.SINSTS +\";\"+ msg.payload.TIC.EASF01;\n\nmsg.payload = {};\nmsg.payload.idx = 68;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":220,"wires":[["5743d5d0.f6320c","b2fc7f56.9ab89"]]},{"id":"b2fc7f56.9ab89","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":220,"wires":[]},{"id":"5743d5d0.f6320c","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":200,"wires":[]},{"id":"a80552d8.42856","type":"mqtt in","z":"34f140f8.a2bfa","name":"","topic":"tele/TeleInfo/SENSOR/#","qos":"2","datatype":"utf8","broker":"ead0b0c3.e5e6d","nl":false,"rap":false,"inputs":0,"x":140,"y":100,"wires":[["5367159b1760b8b2"]]},{"id":"5e0c7c675c1407c8","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":100,"wires":[]},{"id":"5367159b1760b8b2","type":"function","z":"34f140f8.a2bfa","name":"Cleaning Trame","func":"// Récupération des données MQT\n//Cleaning de la trame pour pouvoir la passer dans le noeud json\nvar xvalue = {};\nxvalue = msg.payload;\nmsg.payload = xvalue.replace(/\b|\u0004|@|\f|\t|\\\\|\\n/g, '')\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":140,"y":180,"wires":[["e1a1acc9fbf67ad3"]]},{"id":"e1a1acc9fbf67ad3","type":"json","z":"34f140f8.a2bfa","name":"","property":"payload","action":"","pretty":false,"x":130,"y":280,"wires":[["5e0c7c675c1407c8","4928abc7.9f50b4","d994fe9.eb362","ea2010a9.53948","91aaccbd.44a7","3906e2c8.df91ce","c7d7f48.21e2a08","c221536d537bfda3","26b7916af05ef065"]]},{"id":"26b7916af05ef065","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Total","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\nXValue = \"\" + msg.payload.TIC.EAIT + \";0;0;0;\" + msg.payload.TIC.SINSTI + \";0\";\n\nmsg.payload = {};\nmsg.payload.idx = 114;\nmsg.payload.svalue = XValue;\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":620,"wires":[["576532848921fb85","1ad502b556f2e870"]]},{"id":"c221536d537bfda3","type":"function","z":"34f140f8.a2bfa","name":"Decode Trame Prod KWh","func":"// Récupération des données\n//Préparation requête pour Domoticz\nvar XValue\nXValue= msg.payload.TIC.SINSTI +\";\"+ msg.payload.TIC.EAIT;\n\nmsg.payload = {};\nmsg.payload.idx = 113;\nmsg.payload.svalue = XValue;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":700,"wires":[["97927f558ccb20a5","a34ae61157ac9378"]]},{"id":"576532848921fb85","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":600,"wires":[]},{"id":"97927f558ccb20a5","type":"debug","z":"34f140f8.a2bfa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":680,"wires":[]},{"id":"1ad502b556f2e870","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":620,"wires":[]},{"id":"a34ae61157ac9378","type":"mqtt out","z":"34f140f8.a2bfa","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"9a37d1dd.66c5a","x":1090,"y":700,"wires":[]},{"id":"9a37d1dd.66c5a","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"{\"hwid\":\"19\",\"idx\":56,\"nvalue\":0,\"svalue\":\"959\"}","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"ead0b0c3.e5e6d","type":"mqtt-broker","name":"","broker":"192.168.1.200","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Conclusion:
Soit le problème vient d'erreur dans les échanges entre le linky et le module téléinfo (voir les log plus haut réalisés avec picocom)
Soit le problème vient du code dans tasmota qui envoi des trames MQT avec des charactères incompatibles avec json object (voir aussi plus haut les trames MQT).Pour le moment ça fonctionne dans l'état mais il y a un problème quelque part...
Je suis dispo four poursuivre des test si besoin pour faire faire progresser le système
A suivre...
-
@Samquad je suis désolé, pour moi la trame est polluée à la base, je ne sais dire si ça vient du compteur ou non, sachant que nous avons a peut prêt tout essayé coté carte électronique et c'est la 1ere fois que je vois ça non resolvable.
-
@Charles
Bonjour Charles,
Je déterre le sujet car j'avais réussi à créer flow node red pour épurer les données polluées et les intégrer dans Domoticz. Ca fonctionnait avec quelques bug mais globalement je pouvais lire mes données.
Problème : depuis 15 jours mon Wemos Tasmota en V12.1.1.2 ne renvoi plus de trame MQTT le code téléinfo n'arrive plus à traiter ma trame et j'ai ces logs dans la console (dont le code d'erreur buffer overflow)06:53:53.986 LibTeleinfo::checkLine Err checksum 0x3B != 0x39 06:53:53.987 LibTeleinfo::checkLine Err checksum 0x5B != 0x3E 06:53:53.991 LibTeleinfo::checkLine Err checksum 0x3D != 0x44 06:53:54.243 LibTeleinfo: _recv_idx = 128/128 buffer overflow 06:53:54.490 LibTeleinfo::checkLine Err checksum 0x4F != 0x4C 06:53:54.492 LibTeleinfo::checkLine Err checksum 0x4D != 0x50 06:53:54.498 LibTeleinfo::checkLine Err checksum 0x3D != 0x27 06:53:54.744 LibTeleinfo::checkLine Err checksum 0x25 != 0x28 06:53:54.755 LibTeleinfo::checkLine Err checksum 0x21 != 0x55 06:53:54.996 LibTeleinfo::checkLine Err checksum 0x3B != 0x41 06:53:54.998 LibTeleinfo::checkLine Err checksum 0x5F != 0x24 06:53:54.002 LibTeleinfo::checkLine Err checksum 0x4E != 0x5B 06:53:55.233 LibTeleinfo::checkLine Err checksum 0x56 != 0x58 06:53:55.238 LibTeleinfo::checkLine Err checksum 0x3B != 0x34 06:53:55.501 MQT: tele/TeleInfo/SENSOR = {"TIC":{"NGTF":" BASE ","EASF03":0,"EASF07":0,"EASF08":0,"EASF09":0,"EASD02":52518559,"EASD03":0,"EASD04":0,"ERQ3":999393,"ERQ4":5980466,"IRMS1":3,"URMS1":236,"PREF":12,"PCOUP":12,"SINSTS":0,"SMAXSN-1":6796,"CCAIN":12,"STGE":"003A0301","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"ADSC":"031861721681","VTIC":2,"LTARF":" BASE ","EAST":85091811,"EASF04":0,"EASF05":0,"EASF10":0,"EASD01":32573252,"EAIT":8244212,"ERQ1":4360930,"ERQ2":136537,"SMAXSN":3766,"CCAIN-1":0,"EASF02":36496683,"SMAXIN-1":4899,"UMOY1":237,"CCASN-1":352,"CCASN":362,"EASF06":0,"SMAXIN":804,"EASF01":48595128,"SINSTI":733}} 06:53:55.738 LibTeleinfo::checkLine Err checksum 0x2C != 0x24 06:53:55.740 LibTeleinfo::checkLine Err checksum 0x22 != 0x25 06:53:55.746 LibTeleinfo::checkLine Err checksum 0x4B != 0x30 06:53:55.993 LibTeleinfo::checkLine Err checksum 0x4A != 0x30 06:53:56.237 LibTeleinfo::checkLine Err checksum 0x3C != 0x41 06:53:56.239 LibTeleinfo::checkLine Err checksum 0x40 != 0x39 06:53:56.243 LibTeleinfo::checkLine Err checksum 0x3B != 0x3E 06:53:56.245 LibTeleinfo::checkLine Err checksum 0x57 != 0x58
J'ai essayé avec la version V12.5.0 et c'est pire le module plante quand je branche la liaison TIC et la conf du Wemos Tasmota saute à chaque fois.
Pour info, j'ai téléchargé le firmware compilé sur ce lien:
https://github.com/Jason2866/Tasmota-specials/blob/firmware/firmware/tasmota/other/tasmota-teleinfo.bin.gzJ'ai remis le Pitinfo sur mon RPI3 pour tester, je lance cette commande
picocom -b 9600 -d 7 -p e -f n /dev/ttyAMA0
j'obtiens ça:
DATE E230624072123 > NGTF BASE < LTARF BASE F EAST 085091803 1 EASF01 048595120 D EASF02 036496683 P EASF03 000000000 $ EASF04 000000000 % EASF05 000000000 & EASF06 000000000 ' EASF07 000000000 ( EASF08 000000000 ) EASF09 000000000 * EASF10 000000000 " EASD01 032573244 > EASD02 052518559 I EASD03 000000000 " EASD04 000000000 # EAIT 008244172 ! ERQ1 004360930 T ERQ2 000136522 O ERQ3 000999325 " ERQ4 005980440 \ IRMS1 002 0 URMS1 237 F PREF 12 B PCOUP 12 \ SINSTS 00455 T SMAXSN E230624035413 03766 A SMAXSN-1 E230623214513 06796 $ SINSTI 00000 < SMAXIN E230624000000 00000 Q SMAXIN-1 E230623132306 04899 [ CCASN E230624070000 00352 : CCASN-1 E230624063000 00610 W CCAIN E230624070000 00000 & CCAIN-1 E230624063000 00000 F UMOY1 E230624072000 236 0 STGE 003A0101 ; MSG1 PAS DE MESSAGE < PRM 12432850902420 + RELAIS 000 B NTARF 01 N NJOURF 00 & NJOURF+1 00 B PJOURF+1 00008001 NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE 9 ADSC 031861721681 9 VTIC 02 J DATE E230624072124 ? NGTF BASE < LTARF BASE F EAST 085091803 1 EASF01 048595120 D EASF02 036496683 P EASF03 000000000 $ EASF04 000000000 % EASF05 000000000 & EASF06 000000000 ' EASF07 000000000 ( EASF08 000000000 ) EASF09 000000000 * EASF10 000000000 " EASD01 032573244 > EASD02 052518559 I EASD03 000000000 " EASD04 000000000 # EAIT 008244172 ! ERQ1 004360930 T ERQ2 000136522 O ERQ3 000999325 " ERQ4 005980440 \ IRMS1 002 0 URMS1 237 F PREF 12 B PCOUP 12 \ SINSTS 00453 R SMAXSN E230624035413 03766 A SMAXSN-1 E230623214513 06796 $ SINSTI 00000 < SMAXIN E230624000000 00000 Q SMAXIN-1 E230623132306 04899 [ CCASN E230624070000 00352 : CCASN-1 E230624063000 00610 W CCAIN E230624070000 00000 & CCAIN-1 E230624063000 00000 F UMOY1 E230624072000 236 0 STGE 003A0101 ; MSG1 PAS DE MESSAGE < PRM 12432850902420 + RELAIS 000 B NTARF 01 N NJOURF 00 & NJOURF+1 00 B PJOURF+1 00008001 NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE 9 ADSC 031861721681 9 VTIC 02 J DATE E230624072125 @ NGTF BASE < LTARF BASE F EAST 085091803 1 EASF01 048595120 D EASF02 036496683 P EASF03 000000000 $ EASF04 000000000 % EASF05 000000000 & EASF06 000000000 ' EASF07 000000000 ( EASF08 000000000 ) EASF09 000000000 * EASF10 000000000 " EASD01 032573244 > EASD02 052518559 I EASD03 000000000 " EASD04 000000000 # EAIT 008244172 ! ERQ1 004360930 T ERQ2 000136522 O ERQ3 000999325 " ERQ4 005980440 \ IRMS1 002 0 URMS1 237 F PREF 12 B PCOUP 12 \ SINSTS 00454 S SMAXSN E230624035413 03766 A SMAXSN-1 E230623214513 06796 $ SINSTI 00000 < SMAXIN E230624000000 00000 Q SMAXIN-1 E230623132306 04899 [ CCASN E230624070000 00352 : CCASN-1 E230624063000 00610 W CCAIN E230624070000 00000 & CCAIN-1 E230624063000 00000 F UMOY1 E230624072000 236 0 STGE 003A0101 ; MSG1 PAS DE MESSAGE < PRM 12432850902420 + RELAIS 000 B NTARF 01 N NJOURF 00 & NJOURF+1 00 B PJOURF+1 00008001 NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE NONUTILE 9 ADSC 031861721681 9 VTIC 02 J DATE E230624072126 A NGTF BASE < LTARF BASE F EAST 085091803 1 EASF01 048595120 D EASF02 036496683 P EASF03 000000000 $ EASF04 000000000 % EASF05 000000000 & EASF06 000000000 ' EASF07 000000000 ( EASF08 000000000 ) EASF09 000000000 * EASF10 000000000 " EASD01 032573244 > EASD02 052518559 I EASD03 000000000 " EASD04 000000000 # EAIT 008244172 ! ERQ1 004360930 T ERQ2 000136522 O ERQ3 000999325 " ERQ4 005980441 ] IRMS1 002 0 URMS1 237 F PREF 12 B PCOUP 12 \ SINSTS 00456 U SMAXSN E230624035413 03766 A SMAXSN-1 E230623214513 06796 $ SINSTI 00000 < SMAXIN E230624000000 00000 Q SMAXIN-1 E230623132 Terminating... Skipping tty reset... Thanks for using picocom
PJOURF+1 indique une valeur étrange?
Je pense que le buffer de réception du tasmota sature et le traitement des données ne peut pas être effectué.
Je viens de te commander le WeMos Teleinfo, on verra si le problème est lié à mon montage mais c'est pas sur... A suivre donc...