@Charles Merci beaucoup pour cette info ça fonctionne!
Latest posts made by Samquad
-
RE: Wemos téléinfo V1.1 la led s'allume mais le Wemos mini d1 ne reçois pas de trame TIC
-
Wemos téléinfo V1.1 la led s'allume mais le Wemos mini d1 ne reçois pas de trame TIC
Bonjour,
J'ai le module Pitinfo cablé sur un wemos mini d1 de la façon suivante:
Cablage
wemos-- pitinfo
3.3V VCC
G GND
D6 Led
RX TXDJ'utilise le Firmware suivant :
Tasmota 12.5.0 by Theo Arends
Teleinfo 11.1 (esp8266) by Nicolas BernaertsConfiguration dans le Wemos mini d1:
RX GPIO3 -->Tinfo RX
D6 GPIO12 Output Hi
Les trames sont bien traitées par le Wemos mini d1.@Charles : tu m'avais conseillé le wemos télinfo V1.1 qui est plus simple à connecter sur un Wemos mini d1 car il est plug & play.
Comme j'ai besoin du Pitinfo pour une autre appli, j'ai commandé le Wemos téleinfo V1.1
Je viens d'essayer de le mettre juste en déconnectant le Pitinfo et en connectant Wemos téleinfo V1.1.
A la remise sous tension
La led du module s'allume mais je ne reçois aucune info dans le Wemos.
D'après-vous qu'est qui pourrait en être la cause?
Merci pour votre aide
Samquad -
RE: Tasmota
@localhost61 Merci beaucoup pour ton aide rapide et expertise sur le sujet. Ca fait plusieurs mois que je galère avec ce problème --> depuis que j'ai fait changer le mode historique en mode standard pour récupérer mes index de production solaire.
Je viens d'ajouter une résistance de 220Ω en série sur un des fils branché sur le linky et je n'ai quasiment plus d'erreur checksum avec la version tasmota téléinfo officielle.
J'en ai profité pour installer la version Tasmota 12.5.0 by Theo Arends
Teleinfo 11.1 (esp8266) by Nicolas Bernaerts qui gère plus efficacement la com et ça fonctionne niquel ! je n'ai plus d'erreur !Mon wemos mini d1 dédié au téléinfo gère habituellement un compteur d'impulsion (compteur d'eau) et une sonde extérieure 18b20.
Sais-tu si c'est possible d'ajouter la gestion des sondes 18b20car elle manque à la compilation.
J'ai essayé de modifier le fichier my_user_config.h en décochant la ligne 1021line 1021: define THERMOSTAT_SENSOR_NAME "DS18B20" // Name of the local sensor to be used
Mais j'ai plein d'erreur quand je tente de compiler le programme.
Est-ce que c'est possible d'ajouter DS18B20 ou est-ce qu'il vaut mieux le gérer avec un autre wemos? -
RE: Tasmota
@localhost61
Merci pour l'info et le lien du code source.
J'ai pu compiler et faire mes premier tests.
J'utilise pitinfo V1.2 pour RPI branché sur Wemos mini d1 8266.
En fait je contacte 45% d'erreurs, c'est pas étonnant que la version Tasmota avec téléinfo officelle est en difficulté et m'affiche beaucoup d'erreur de checksum!Voici mes log:
0:06:23.187 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:23","TIC":{"ADSC":"031861721681","EASD02":"052672883","ERQ3":"001026972","ERQ4":"006043286","IRMS1":"008","URMS1":"229","PREF":"12","PCOUP":"12","SINSTS":"01796","EASF06":"000000000","EASF07":"000000000","SINSTI":"00000","SMAXIN":"E230708094724 01179","EASD03":"000000000","EASD04":"000000000","EAIT":"008449112","CCAIN-1":"E230708093000 00070","RELAIS":"000","ERQ4":"006043286","IRMS1":"008","URMS1":"229","PREF":"12","PCOUP":"12","NJOURF+1":"00","SINSTS":"01788"}} 10:06:23.493 TIC: Message reset 10:06:25.676 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:25","TIC":{"ADSC":"031861721681","VTIC":"02","DATE":"E230708100620","LTARF":"BASE","EAST":"085309299","EASF01":"048812616","EASF04":"000000000","EASF05":"000000000","SMAXSN-1":"E230707220002 07280","EASF06":"000000000","EASF09":"000000000","EASF10":"000000000","SMAXIN":"E230708094724 01179","EASD03":"000000000","EASD04":"000000000","EAIT":"008449112","CCAIN-1":"E230708093000 00070","PRM":"12432850902420","IRMS1":"008","URMS1":"229","PREF":"12","PCOUP":"12","SINSTS":"01787","NJOURF+1":"00","SINSTI":"00000","CCASN":"E230708100000 00066","STGE":"003A4101","NTARF":"01","NJOURF":"00","NJOURF+1":"00"}} 10:06:25.689 TIC: Message reset 10:06:27.926 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:27","TIC":{"ADSC":"031861721681","VTIC":"02","DATE":"E230708100622","EAST":"085309300","ERQ3":"001026972","EASF01":"048812616","EASF04":"000000000","EASF05":"000000000","SMAXSN-1":"E230707220002 07280","EASF06":"000000000","EASF09":"000000000","EASF10":"000000000","SMAXIN":"E230708094724 01179","EASD03":"000000000","EASD04":"000000000","EAIT":"008449112","ERQ1":"004363751","RELAIS":"000","IRMS1":"008","IRMS1":"008","URMS1":"229","PREF":"12","PCOUP":"12","SINSTS":"01797","SINSTI":"00000","SINSTI":"00000","CCASN":"E230708100000 00066","CCASN":"E230708100000 00066","CCAIN-1":"E230708093000 00070","NTARF":"01","NJOURF":"00","NTARF":"01","NJOURF":"00","NJOURF+1":"00"}} 10:06:29.181 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:29","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ2":"000143666","NGTF":"BASE","ERQ4":"006043287","EAST":"085309300","EASF02":"036496683","EASF05":"000000000","SMAXIN-1":"E230707131502 04978","EASF06":"000000000","EASF06":"000000000","CCAIN":"E230708100000 00422","SMAXIN":"E230708094724 01179","EASD03":"000000000","STGE":"003A4101","EASD02":"052672886","PRM":"12432850902420","RELAIS":"000","NTARF":"01","NJOURF":"00","NJOURF+1":"00","PREF":"12"}} 10:06:29.195 TIC: Message reset 10:06:30.179 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:30","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ3":"001026972","ERQ4":"006043287","IRMS1":"008","URMS1":"229","PREF":"12","PCOUP":"12","SMAXIN-1":"E230707131502 04978","SMAXSN-1":"E230707220002 07280","SINSTI":"00000","CCAIN":"E230708100000 00422","SMAXIN":"E230708094724 01179","EASD03":"000000000","CCAIN":"E230708100000 00422","EASD02":"052672886","PRM":"12432850902420","STGE":"003A4101","NTARF":"01","PRM":"12432850902420","RELAIS":"000","NTARF":"01","NJOURF":"00","NJOURF+1":"00"}} 10:06:31.427 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:31","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ3":"001026972","NGTF":"BASE","EAST":"085309302","URMS1":"229","PREF":"12","EASF04":"000000000","EASF05":"000000000","SMAXSN-1":"E230707220002 07280","SINSTI":"00000","EASF09":"000000000","EASF10":"000000000","EASD03":"000000000","EASD04":"000000000","EAIT":"008449112","ERQ1":"004363751","STGE":"003A4101","NTARF":"01","URMS1":"229","PREF":"12","PCOUP":"12","SINSTS":"01795","NJOURF+1":"00","SINSTI":"00000","SMAXIN":"E230708094724 01179","CCASN":"E230708100000 00066","CCAIN-1":"E230708093000 00070","MSG1":"PAS DE MESSAGE","NJOURF":"00","NJOURF+1":"00"}} 10:06:32.676 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:32","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ3":"001026972","LTARF":"BASE","EAST":"085309303","EASF01":"048812620","PREF":"12","PCOUP":"12","SINSTS":"01789","SMAXSN-1":"E230707220002 07280","EASF07":"000000000","SINSTI":"00000","EASF09":"000000000","EASD03":"000000000","EASD04":"000000000","CCAIN":"E230708100000 00422","ERQ1":"004363751","STGE":"003A4101","STGE":"003A4101","URMS1":"229","PREF":"12","RELAIS":"000","NTARF":"01","NJOURF":"00","NJOURF+1":"00","SMAXIN":"E230708094724 01179"}} 10:06:33.676 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:33","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ3":"001026972","LTARF":"BASE","EAST":"085309303","EASF01":"048812620","PREF":"12","EASF04":"000000000","EASF05":"000000000","EASF06":"000000000","EASF07":"000000000","SINSTI":"00000","EASF10":"000000000","EASD01":"032636414","EASD04":"000000000","CCAIN":"E230708100000 00422","EAIT":"008449112","ERQ1":"004363751","ERQ2":"000143666","URMS1":"229","PREF":"12","RELAIS":"000","PREF":"12","PCOUP":"12","SINSTS":"01797","SMAXSN":"E230708064605 04098","SMAXIN":"E230708094724 01179","CCAIN-1":"E230708093000 00070"}} 10:06:33.841 TIC: Message reset 10:06:34.927 MQT: teleinfo/tele/SENSOR = {"Time":"2023-07-08T10:06:34","TIC":{"ADSC":"031861721681","VTIC":"02","ERQ2":"000143666","EASF08":"000000000","ERQ4":"006043287","EAST":"085309304","URMS1":"229","PREF":"12","PCOUP":"12","SINSTS":"01794","EASF07":"000000000","SINSTI":"00000","SINSTI":"00000","EASD01":"032636414","CCASN":"E230708100000 00066","CCAIN":"E230708100000 00422","EAIT":"008449112","ERQ1":"004363751","ERQ2":"000143666","URMS1":"229","PREF":"12","NTARF":"01","NJOURF":"00","NJOURF+1":"00","SINSTS":"01797"}} 10:06:34.982 TIC: Message reset
J'attends la réception du module WeMos Teleinfo que j'ai commandé @Charles pour voir si ça améliore le signal de réception
-
RE: Tasmota
Bonjour
Mon linky est en mode standard tarif base avec revente de surplus solaire.
J'utilise la version tasmota teleinfo officielle V12.1.1.2 et pas supérieure car les autres plus récentes ne fonctionnent pas (reboot en boucle à cause de saturation de buffer en réception)
Actuellement ca fonctionne partiellement avec ces erreurs permanentes dans mes logs:18:18:11.519 LibTeleinfo::checkLine Err checksum 0x2D != 0x42 18:18:11.520 LibTeleinfo::checkLine Err checksum 0x20 != 0x22 18:18:11.757 LibTeleinfo::checkLine Err checksum 0x5C != 0x5D 18:18:11.764 LibTeleinfo::checkLine Err checksum 0x3D != 0x26 18:18:12.009 LibTeleinfo::checkLine Err checksum 0x40 != 0x56
je tente de compiler avec visual studio PlatformIO un firmware pour tester le module téléinfo de @Nicolas-Bernaerts à partir des sources tasmota V12.5.0 et de ces fichiers V11.1 sous https://github.com/NicolasBernaerts/tasmota/tree/master/teleinfo
Je cherche à tester cette version de téléinfo car elle pourrait peut être régler mes problèmes...
J'essaye de compiler un firmware pour un Wemos mini d1 8266 et j'ai des erreurs de compilation que je ne sais pas résoudre. Voici le log de build* Executing task: C:\Users\sbouv\.platformio\penv\Scripts\platformio.exe run --environment tasmota-teleinfo Processing tasmota-teleinfo (platform: https://github.com/tasmota/platform-espressif8266/releases/download/2023.04.00/platform-espressif8266.zip; framework: arduino; board: esp8266_1M) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option *** use provided user_config_override.h as planned *** *** use provided platformio_override.ini as planned *** *** use provided platformio_tasmota_cenv.ini as planned *** CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp8266_1M.html PLATFORM: Espressif 8266 (2023.4.0) > Espressif Generic ESP8266 Tasmota 1M sketch NO FS HARDWARE: ESP8266 80MHz, 80KB RAM, 972.00KB Flash PACKAGES: - framework-arduinoespressif8266 @ 2.7.4+9 - tool-esptoolpy @ 1.40501.0 (4.5.1) - toolchain-xtensa @ 2.40802.200502 (4.8.2) Converting tasmota.ino LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ strict Found 59 compatible libraries Scanning dependencies... Dependency Graph |-- Adafruit CCS811 Library @ 1.0.0 |-- Adafruit MAX31865 library @ 1.0.1 |-- Adafruit MCP9808 Library @ 1.1.2 |-- Adafruit PM25 AQI Sensor @ 1.0.6 |-- Adafruit seesaw Library @ 1.3.1 |-- Adafruit SGP30 Sensor @ 1.2.0 |-- Adafruit SGP40 Sensor @ 1.1.0 |-- Adafruit VEML7700 Library @ 1.0.0 |-- BME8563 |-- headers |-- EEPROM 24C128_256_521 |-- I2Cdevlib-Core |-- MPU6050 I2C |-- Mutichannel_Gas_Sensor @ 0.0.1 |-- UdpListener @ 1.0 |-- Unishox Compressor Decompressor highly customized and optimized for ESP8266 and Tasmota @ 1.0 |-- VL53L0X @ 1.0.2 |-- VL53L1X @ 1.0.1 |-- TLS mini client derived from Arduino @ 1.0 |-- Adafruit TSL2591 |-- base64 @ 1.1.1 |-- BME68x |-- DNSServer @ 1.1.1 |-- ESP8266HTTPClient @ 1.2 |-- ESP8266httpUpdate @ 1.3 |-- ESP8266mDNS @ 1.2 |-- ESP8266WebServer @ 1.0 |-- ESP8266WiFi @ 1.0 |-- Ext-printf @ 1.0 |-- FrogmoreScd30 |-- FrogmoreScd40 |-- FTP |-- HPMA115S0 Arduino Library @ 1.0.0 |-- IRremoteESP8266 @ 2.8.5 |-- JSMN JSON parser customized and optimized for ESP8266 and Tasmota @ 1.0 |-- LinkedList |-- LittleFS(esp8266) @ 0.1.0 |-- TasmotaLList @ 1.0 |-- LOLIN_HP303B @ 1.0.0 |-- MLX90640 |-- MPU_accel |-- NeoPixelBus @ 2.6.7 |-- OneWire @ 2.3.2 |-- PubSubClient @ 2.8 |-- SD(esp8266) @ 2.0.0 |-- ESP8266SdFat @ 1.1.0 |-- Sensirion I2C SEN5X @ 0.2.0 |-- SPI @ 1.0 |-- TasmotaModbus @ 3.6.0 |-- TasmotaSerial @ 3.6.0 |-- Ticker @ 1.0 |-- Joba_Tsl2561 @ 2.0.10 |-- BearSSL @ 0.6 |-- Wire @ 1.0 Building in release mode Compiling .pio\build\tasmota-teleinfo\src\tasmota.ino.cpp.o Compiling .pio\build\tasmota-teleinfo\src\tasmota_support\homekit.c.o Compiling .pio\build\tasmota-teleinfo\src\tasmota_xsns_sensor\xsns_62_esp32_mi_homekit.c.o Generating LD script .pio\build\tasmota-teleinfo\ld\local.eagle.app.v6.common.ld Compiling .pio\build\tasmota-teleinfo\libf94\Wire\Wire.cpp.o Compiling .pio\build\tasmota-teleinfo\lib855\Adafruit_CCS811-1.0.0.14\Adafruit_CCS811.cpp.o Compiling .pio\build\tasmota-teleinfo\lib021\SPI\SPI.cpp.o Archiving .pio\build\tasmota-teleinfo\libf94\libWire.a Archiving .pio\build\tasmota-teleinfo\lib855\libAdafruit_CCS811-1.0.0.14.a Compiling .pio\build\tasmota-teleinfo\lib7bd\Adafruit_MAX31865-1.1.0-custom\Adafruit_MAX31865.cpp.o Compiling .pio\build\tasmota-teleinfo\lib94c\Adafruit_MCP9808_Tasmota\Adafruit_MCP9808.cpp.o Archiving .pio\build\tasmota-teleinfo\lib021\libSPI.a Compiling .pio\build\tasmota-teleinfo\libc40\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o C:/Users/sbouv/Documents/Sam/RPI4/Tasmota/Tasmota-development/tasmota/tasmota_support/support_tasmota.ino: In function 'void SetDevicePower(power_t, uint32_t)': C:/Users/sbouv/Documents/Sam/RPI4/Tasmota/Tasmota-development/tasmota/tasmota_support/support_tasmota.ino:322:29: error: 'union SOBitfield6' has no member named 'bistable_single_pin' if (Settings->flag6.bistable_single_pin) { // SetOption152 - (Power) Use single pin bistable ^ C:/Users/sbouv/Documents/Sam/RPI4/Tasmota/Tasmota-development/tasmota/tasmota_support/support_tasmota.ino:352:31: error: 'union SOBitfield6' has no member named 'bistable_single_pin' if (Settings->flag6.bistable_single_pin) { // SetOption152 - (Power) Use single pin bistable ^ C:/Users/sbouv/Documents/Sam/RPI4/Tasmota/Tasmota-development/tasmota/tasmota_support/support_tasmota.ino: In function 'void GpioInit()': C:/Users/sbouv/Documents/Sam/RPI4/Tasmota/Tasmota-development/tasmota/tasmota_support/support_tasmota.ino:2253:28: error: 'union SOBitfield6' has no member named 'bistable_single_pin' if (!Settings->flag6.bistable_single_pin) { // SetOption152 - (Power) Use single pin bistable ^ Archiving .pio\build\tasmota-teleinfo\lib7bd\libAdafruit_MAX31865-1.1.0-custom Archiving .pio\build\tasmota-teleinfo\lib94c\libAdafruit_MCP9808_Tasmota.a Compiling .pio\build\tasmota-teleinfo\libc40\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o Compiling .pio\build\tasmota-teleinfo\libc40\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o Compiling .pio\build\tasmota-teleinfo\lib965\Adafruit_PM25AQI-1.0.6\Adafruit_PM25AQI.cpp.o *** [.pio\build\tasmota-teleinfo\src\tasmota.ino.cpp.o] Error 1 ========================================================================================= [FAILED] Took 25.68 seconds ========================================================================================= Environment Status Duration ---------------- -------- ------------ tasmota-teleinfo FAILED 00:00:25.677 ==================================================================================== 1 failed, 0 succeeded in 00:00:25.677 ==================================================================================== * The terminal process "C:\Users\sbouv\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'tasmota-teleinfo'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.
Qui saurait me dire d'où vient le problème?
Existe-t-il une méthode plus simple pour télécharger le firmware qui demanderait mois de compétences technique que visual studio code & plateformIO?Merci
-
RE: Tasmota sensor 12.1.1.2 avec linky mode Standard --> Libteleinfo checkline error checksum...
@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... -
RE: Tasmota sensor 12.1.1.2 avec linky mode Standard --> Libteleinfo checkline error checksum...
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...
-
RE: Tasmota sensor 12.1.1.2 avec linky mode Standard --> Libteleinfo checkline error checksum...
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?
-
RE: Tasmota sensor 12.1.1.2 avec linky mode Standard --> Libteleinfo checkline error checksum...
@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?