NicolasBernaerts / tasmota

Some Tasmota firmware extensions
32 stars 14 forks source link

Reboot en boucle #35

Open Lutty76 opened 1 week ago

Lutty76 commented 1 week ago

Bonjour,

Mon esp 8266 reboot en boucle dès que je le branche à mon compteur.

Avant, j'utilisais ce firmware sans souci (en version Tasmota 12.1.1.2 by Theo Arends).

Donc mes branchements sont corrects.

J'utilise ce circuit comme interface entre mon ESP8266 et mon compteur Linky.

Je suis en monophasé sans contrat particulier. J'ai des panneaux solaires qui parfois produisent plus que je consomme (courant injecté dans les réseaux, mais sans revente).

Je suis sur le format standard

Voici un exemple d'info remonté par mon ancien firmware :

{"ADSC":"031864908464","VTIC":2,"NGTF":"      BASE      ","LTARF":"      BASE      ","EAST":22377879,"EASF01":22377879,"EASF02":0,"EASF03":0,"EASF04":0,"EASF05":0,"EASF06":0,"EASF07":0,"EASF08":0,"EASF09":0,"EASF10":0,"EASD01":7256061,"EASD02":5557560,"EASD03":2470254,"EASD04":7094004,"IRMS1":3,"URMS1":236,"PREF":6,"PCOUP":6,"SINSTS":642,"SMAXSN":2519,"SMAXSN-1":3328,"UMOY1":235,"STGE":"003AC001","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0}

J'ai activé le "EnergyConfig Full" peut-être y aura-t-il plus d'info :

12:54:58.670 MQT: teleinfo/tele/teleinfo/SENSOR = {"TIC":{"ADSC":"031864908464","VTIC":2,"NGTF":"      BASE      ","LTARF":"      BASE      ","EAST":23938478,"EASF01":23938478,"EASF02":0,"EASF03":0,"EASF04":0,"EASF05":0,"EASF06":0,"EASF07":0,"EASF08":0,"EASF10":0,"EASD01":7530338,"EASD02":6208960,"EASD03":2643980,"EASD04":7555200,"IRMS1":3,"URMS1":240,"PREF":6,"PCOUP":6,"SINSTS":723,"SMAXSN":2525,"SMAXSN-1":2964,"UMOY1":240,"STGE":"003A4001","PRM":2147483647,"RELAIS":0,"NTARF":1,"NJOURF":0,"NJOURF+1":0,"EASF09":0}}

Je n'ai pas pu me brancher en série sur le compteur, il faut que je regarde comment faire ça.

Merci

NicolasBernaerts commented 1 week ago

Bonjour, La dernière version publiée sur Github fonctionne parfaitement avec un ESP32 mais pose problème sur un ESP8266. Je pense avoir trouvé la source du problème (différence de comportement sur PSTR entre ESP32 et ESP8266). Je devrais pouvoir publier un nouveau binaire avec le correctif d'ici 1 ou 2 jours. Quelle version de ROM utilisez-vous (1Mb, 4Mb ou 16Mb) ?

Lutty76 commented 1 week ago

Bonjour,

J'ai essayé la 1M et la 4M, normalement la board est compatible 4M (WeMos D1 Mini)

NicolasBernaerts commented 1 week ago

En fait j'ai fait pas mal d'évolutions alors que mon ESP de test est un ESP32. En vérifiant, certaines évolutions sont trop lourdes pour un ESP8266 en terme de RAM. Je vais faire une version light compatible ESP8266.

NicolasBernaerts commented 1 week ago

Je viens de publier une version ESP8266 qui devrait corriger le problème. Est-ce ok ?

Lutty76 commented 4 days ago

Désolé je n'ai pas pris le temps de regarder ça (et je n'ai pas les notif de réponse sur l'issue), je regarde ça dans la soirée, Merci !

Lutty76 commented 3 days ago

J'ai pu tester, l'esp ne reboot plus mais aucune info me remonte, dans mon MQTT j'ai ceci :

teleinfo/tele/SENSOR

{
  "Time": "2024-07-03T18:19:35",
  "ENERGY": {
    "TotalStartTime": "2024-07-03T18:15:40",
    "Total": 0,
    "Yesterday": 31.767,
    "Today": 0,
    "Period": 0,
    "Power": 0,
    "ApparentPower": 0,
    "ReactivePower": 0,
    "Factor": 0,
    "Voltage": 0,
    "Current": 0
  },
  "METER": {
    "PH": 1,
    "ISUB": 0,
    "PSUB": 0,
    "PMAX": 0
  },
  "CONTRACT": {
    "serial": 0,
    "name": "",
    "period": "Période 256",
    "color": "Inconnu",
    "hour": "Pleine",
    "CONSO": 0
  },
  "ALERT": {
    "Load": 0,
    "Volt": 0,
    "Preavis": 0,
    "Label": ""
  }
}

En console ceci :

00:00:00.001 HDW: ESP8266EX
00:00:00.006 UFS: FlashFS mounted with 1984 kB free
00:00:00.032 CFG: Loaded from File, Compte 5
00:00:00.040 NRG: Init driver 15
00:00:00.041 Projet tasmota - Teleinfo Version 14.1.0(tasmota)-2_7_6(2024-07-02T23:48:01)
00:00:00.041 HLP: Run tcp to get help on TCP Server commands
00:00:00.042 HLP: Run domo to get help on Domoticz integration
00:00:00.042 HLP: Run hass to set Home Assistant auto-discovery [0]
00:00:00.042 HLP: Run homie to set Homie auto-discovery [0]
00:00:00.043 TIC: Partition mounted
00:00:00.049 HLP: Run energyconfig to get help on all Teleinfo commands
00:00:00.049 HLP: Run tz to get help on Timezone commands
00:00:01.001 WIF: Connexion à l'AP1 Lutty_IOT Channel 6 BSSId D8:0D:17:54:F9:30 en mode 11n comme teleinfo-1872...
00:00:02.559 WIF: Connecté
00:00:02.762 HTP: Serveur web actif sur teleinfo-1872 avec l'adresse IP 192.168.1.77
18:19:20.327 MQT: Tentative de connexion...
18:19:20.535 MQT: Échec de connexion à 192.168.1.22:1883, rc -2. Nouvelle tentative dans 10 s
18:19:30.799 MQT: Tentative de connexion...
18:19:30.814 MQT: Connecté
18:19:30.817 MQT: teleinfo/tele/LWT = Online (persistant)
18:19:30.818 MQT: teleinfo/cmnd/POWER = 
18:19:30.822 MQT: teleinfo/tele/INFO1 = {"Info1":{"Module":"Sonoff Basic","Version":"14.1.0(tasmota)","FallbackTopic":"cmnd/DVES_A1C750_fb/","GroupTopic":"tasmotas/cmnd/"}}
18:19:30.824 MQT: teleinfo/tele/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"teleinfo-1872","IPAddress":"192.168.1.77"}}
18:19:30.825 MQT: teleinfo/tele/INFO3 = {"Info3":{"RestartReason":"Software/System restart","BootCount":6}}
18:19:30.826 MQT: teleinfo/stat/RESULT = {"POWER":"OFF"}
18:19:30.828 MQT: teleinfo/stat/POWER = OFF
18:19:35.280 MQT: teleinfo/tele/STATE = {"Time":"2024-07-03T18:19:35","Uptime":"0T00:00:20","UptimeSec":20,"Heap":12,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Lutty_IOT","BSSId":"D8:0D:17:54:F9:30","Channel":6,"Mode":"11n","RSSI":68,"Signal":-66,"LinkCount":1,"Downtime":"0T00:00:04"}}
18:19:35.287 MQT: teleinfo/tele/SENSOR = {"Time":"2024-07-03T18:19:35","ENERGY":{"TotalStartTime":"2024-07-03T18:15:40","Total":0.000,"Yesterday":31.767,"Today":0.000,"Period":0,"Power":0,"ApparentPower":0,"ReactivePower":0,"Factor":0.00,"Voltage":0,"Current":0.0},"METER":{"PH":1,"ISUB":0,"PSUB":0,"PMAX":0},"CONTRACT":{"serial":0,"name":"","period":"Période 256","color":"Inconnu","hour":"Pleine","CONSO":0},"ALERT":{"Load":0,"Volt":0,"Preavis":0,"Label":""}}

et ce ci en page d'accueil : image

J'ai bien configuré le téléinfo en "Standard" et défini les autres paramètres >Modèles en : {"NAME":"Wemos Teleinfo","GPIO":[1,1,1,1,640,608,1,1,1,5152,1376,1,1,1],"FLAG":0,"BASE":18}

NicolasBernaerts commented 2 days ago

Toutes les valeurs sont à zéro, la page Configuration / Module et Configuration/ TeleInfo nécessitent sans doute une verification.

Lutty76 commented 2 days ago

Pourtant je réutilise celle de mon firmware d'avant basé sur tasmota qui fonctionne correctement, je vais étudier ça quand même