Community Forum
    • Blog
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Ré-écriture de Wifinfo pour traiter le mode standard du Linky

    Scheduled Pinned Locked Moved WifInfo
    110 Posts 27 Posters 26.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CharlesC Offline
      Charles
      last edited by Charles

      voila le pourquoi du comment. Pour le moment c'est pas géré le triphasé désolé. Et du coup la charge non calculée non plus car il faudrait agréger les 3 phases.
      En revanche le mode historique du linky est pas top pour du triphasé je pense que tu ferais mieux à demander à ton fournisseur de passer ton linky en mode standard et pas historique 🙂

      Alexandre ThevenotA 1 Reply Last reply Reply Quote
      • Alexandre ThevenotA Offline
        Alexandre Thevenot @Charles
        last edited by

        @Charles Ok pas de souci, merci pour les conseils. J4essayerai de fouiller à l'occasion.

        1 Reply Last reply Reply Quote
        • Seb HS Offline
          Seb H @admin
          last edited by

          @admin
          C'est ok pour tester sur mon linky en mode standard. T'inquiète, je compilais déjà aussi auparavant. Tu peux me filer le lien de ton github ou je peux télécharger le package prêt à compiler ??

          CharlesC 1 Reply Last reply Reply Quote
          • CharlesC Offline
            Charles @Seb H
            last edited by

            @Seb-H
            Cool, le package prêt à compiler est déjà mergé dans la branche development de l'officiel tasmota 🙂

            SebHS 1 Reply Last reply Reply Quote
            • pascal MochelP Offline
              pascal Mochel
              last edited by

              bonjour

              mes compteurs ne s'incrémentent pas .
              que faut t il configurer pour que cela compte ?

              merci

              1d875285-083c-4bf0-81b7-b194c436eaac-image.png

              1 Reply Last reply Reply Quote
              • CharlesC Offline
                Charles
                last edited by

                Bonjour,
                tu es en contrat base Linky, il doit me manquer une étiquette, tu peux faire une capture de la console WEB lors de l'envoie d'une trame MQTT ?

                1 Reply Last reply Reply Quote
                • pascal MochelP Offline
                  pascal Mochel
                  last edited by

                  merci pour le retour , voila je pense que c est cela qu'il te faut :
                  10:04:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:04:55","Uptime":"0T01:40:09","UptimeSec":6009,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-28,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:04:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:04:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":420,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121175,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":420,"HHPHC":"A","MOTDETAT":0}}
                  10:09:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T01:45:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-30","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:09:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:09:55","Uptime":"0T01:45:09","UptimeSec":6309,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-29,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:09:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:09:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":430,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121211,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":430,"HHPHC":"A","MOTDETAT":0}}
                  10:14:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T01:50:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-27","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:14:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:14:55","Uptime":"0T01:50:09","UptimeSec":6609,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-30,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:14:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:14:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121241,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                  10:19:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T01:55:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-29","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:19:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:19:55","Uptime":"0T01:55:09","UptimeSec":6909,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-30,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:19:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:19:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":540,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121277,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":540,"HHPHC":"A","MOTDETAT":0}}
                  10:24:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:00:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-28","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:24:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:24:55","Uptime":"0T02:00:09","UptimeSec":7209,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-32,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:24:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:24:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":490,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121313,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":490,"HHPHC":"A","MOTDETAT":0}}
                  10:29:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:05:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-31","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:29:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:29:55","Uptime":"0T02:05:09","UptimeSec":7509,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-30,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:29:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:29:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121348,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                  10:34:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:10:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-30","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                  10:34:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:34:55","Uptime":"0T02:10:09","UptimeSec":7809,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-28,"LinkCount":1,"Downtime":"0T00:00:03"}}
                  10:34:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:34:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121378,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}

                  CharlesC 1 Reply Last reply Reply Quote
                  • CharlesC Offline
                    Charles
                    last edited by Charles

                    Yes parfait

                    pour des soucis de lecture peux tu éditer ton post et mettre tout le texte de la trame entre triple backquote ` (donc 3 au debut et 3 à la fin) ca formate mieux et devient bien plus lisible 🙂

                    Exemple

                    21T10:34:55","Uptime":"0T02:10:09","UptimeSec":7809,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-28,"LinkCount":1,"Downtime":"0T00:00:03"}}
                    

                    Merci à toi

                    1 Reply Last reply Reply Quote
                    • CharlesC Offline
                      Charles @pascal Mochel
                      last edited by Charles

                      @pascal-Mochel Alors c'est assez fun tu n'as pas l'index dans la trame (ah si pardon base), effectivement cette etiquette n'est pas traitée. Fix à faire de mon coté

                      Sinon pour info, tu peux de faire un setOption108 1 (ca envoi juste une trame MQTT à chaque reception de trame téléinfo) avec toutes les données de teleinfo sans tenir compte du mode Energy du device.

                      1 Reply Last reply Reply Quote
                      • pascal MochelP Offline
                        pascal Mochel
                        last edited by

                        Avant de modifier le setoption

                        10:19:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:19:55","Uptime":"0T01:55:09","UptimeSec":6909,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-30,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:19:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:19:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":540,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121277,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":540,"HHPHC":"A","MOTDETAT":0}}
                        10:24:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:00:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-28","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:24:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:24:55","Uptime":"0T02:00:09","UptimeSec":7209,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-32,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:24:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:24:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":490,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121313,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":490,"HHPHC":"A","MOTDETAT":0}}
                        10:29:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:05:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-31","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:29:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:29:55","Uptime":"0T02:05:09","UptimeSec":7509,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-30,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:29:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:29:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121348,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                        10:34:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:10:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-30","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:34:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:34:55","Uptime":"0T02:10:09","UptimeSec":7809,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-28,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:34:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:34:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121378,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                        10:39:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:15:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-31","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:39:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:39:55","Uptime":"0T02:15:09","UptimeSec":8109,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-27,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:39:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:39:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121407,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                        10:44:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:20:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-28","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:44:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:44:55","Uptime":"0T02:20:09","UptimeSec":8409,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-31,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:44:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:44:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121437,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                        10:49:48 MQT: linky_pm/tele/HASS_STATE = {"Version":"8.4.0.2(tasmota)","BuildDateTime":"2020-08-19T13:03:24","Module or Template":"WifInfo","RestartReason":"Software/System restart","Uptime":"0T02:25:02","Hostname":"linky_pm-7262","IPAddress":"192.168.1.54","RSSI":"100","Signal (dBm)":"-26","WiFi LinkCount":1,"WiFi Downtime":"0T00:00:03","MqttCount":1,"LoadAvg":19}
                        10:49:55 MQT: linky_pm/tele/STATE = {"Time":"2020-08-21T10:49:55","Uptime":"0T02:25:09","UptimeSec":8709,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"mochel","BSSId":"34:49:5B:B9:5B:C0","Channel":11,"RSSI":100,"Signal":-31,"LinkCount":1,"Downtime":"0T00:00:03"}}
                        10:49:55 MQT: linky_pm/tele/SENSOR = {"Time":"2020-08-21T10:49:55","ENERGY":{"TotalStartTime":"2019-11-29T19:05:42","Total":0.000,"Yesterday":0.000,"Today":0.000,"Period":0,"Power":400,"Current":2.000,"Load":6 "ADCO":"061964653612","OPTARIF":"BASE","ISOUSC":30,"BASE":1121468,"PTEC":"TH..","IINST":2,"IMAX":90,"PAPP":400,"HHPHC":"A","MOTDETAT":0}}
                        
                        
                        1 Reply Last reply Reply Quote
                        • pascal MochelP Offline
                          pascal Mochel
                          last edited by pascal Mochel

                          @Charles said in Ré-écriture de Wifinfo pour traiter le mode standard du Linky:

                          setOption108 1

                          Après setOption 108 1

                          Capture.PNG

                          1 Reply Last reply Reply Quote
                          • CharlesC Offline
                            Charles
                            last edited by Charles

                            Essaie ce PR, normalement ça va corriger ton index BASE 🙂

                            https://github.com/arendst/Tasmota/pull/9138

                            Seul le fichier xnrg_15_teleinfo.inoa changé.

                            https://github.com/arendst/Tasmota/blob/b3ea5a353c4753fcdaa785081bf47326a1c2e06e/tasmota/xnrg_15_teleinfo.ino

                            1 Reply Last reply Reply Quote
                            • pascal MochelP Offline
                              pascal Mochel
                              last edited by

                              @Charles said in Ré-écriture de Wifinfo pour traiter le mode standard du Linky:

                              Attention le device reboot juste après 🙂
                              Et c'est résistant au reset, donc à faire qu'une seule fois.
                              Merci à tous.

                              super ca marche

                              merci

                              maintenant je vais tester la remonté d'info en mqtt sur home assistant

                              f4874066-8f28-432d-85d7-e8707ca18dca-image.png

                              CharlesC 1 Reply Last reply Reply Quote
                              • CharlesC Offline
                                Charles @pascal Mochel
                                last edited by

                                @pascal-Mochel Top, d'ailleurs la modif est maintenant active dans la main branche Theo l'a mergé.

                                1 Reply Last reply Reply Quote
                                • pascal MochelP Offline
                                  pascal Mochel
                                  last edited by

                                  remonté via MQTT d'informations
                                  fonctionne

                                  super merci

                                  1 Reply Last reply Reply Quote
                                  • rgrunblaR Offline
                                    rgrunbla
                                    last edited by

                                    Salut,

                                    Tout d'abord, merci pour le module, j'ai quelque chose qui ressemble à quelque chose, maintenant !

                                    J'essaye d'utiliser Tasmota et ce nouveau module, et je suis face à un problème: j'obtiens des informations qui semblent ne pas être du json valide:

                                    {"Time":"2020-08-22T21:47:31","ENERGY":{"TotalStartTime":"2020-08-22T13:20:46","Total":1.116,"Yesterday":0.000,"Today":1.116,"Period":0,"Power":230,"Current":1.000,"Load":2 "ADCO":"XXXXXXXXXXXX","OPTARIF":"BASE","ISOUSC":45,"BASE":7819066,"PTEC":"TH..","IINST":1,"IMAX":90,"PAPP":230,"HHPHC":"A","MOTDETAT":0}}
                                    

                                    Il manque par exemple entre le "Load":2et le "ADCO": "XXXXXXXXXXXX" une virgule. Ça resemble au problème de @pascal-Mochel d'il y a quelques jours, sauf que j'aimerais garder ce format où j'ai tout dans un seul type detopic MQTT (tele/tasmota_foobar/SENSOR) donc ne pas utiliser le setOption108 1 , et ce "json" non valide m'empêche de traiter les données simplement par la suite.

                                    Une idée?

                                    Rémy

                                    1 Reply Last reply Reply Quote
                                    • CharlesC Offline
                                      Charles
                                      last edited by

                                      Remy

                                      ahah c'est un sale bug, c'est fixé dans ce PR
                                      https://github.com/arendst/Tasmota/pull/9147

                                      Merci du retour

                                      1 Reply Last reply Reply Quote
                                      • rgrunblaR Offline
                                        rgrunbla
                                        last edited by

                                        Merci ! Ça fonctionne globalement, mais… J'ai encore un petit problème: j'ai parfois des caractères non-ascii / utf8 dans la sortie, par exemple:

                                        {"Time":"2020-08-23T12:05:47","ENERGY":{"TotalStartTime":"2020-08-22T13:20:46","Total":2.594,"Yesterday":2.106,"Today":0.488,"Period":0,"Power":240,"Current":1.000,"Load":2,"ADCO":"811775074547","ISOUSC":45,"HHPHC":"A","IMAX":90,"BASE":7822520,"PTEC":"TH..","IINST":1,"PAPP":240,"MOTDETAT":0,"OPTARIF":"BASE","TEC":"TH.."}}
                                        

                                        se termine en fait par:

                                         'OPTARIF":"BASE","\x10TEC":"TH.."}}'
                                        

                                        Ça ne semble pas arriver tout le temps, je peux probablement traiter le \x10 à la sortie de MQTT mais c'est peut être le syndrome d'un autre problème.

                                        Rémy

                                        rgrunblaR 1 Reply Last reply Reply Quote
                                        • rgrunblaR Offline
                                          rgrunbla @rgrunbla
                                          last edited by rgrunbla

                                          En fait, il semblerait qu'il y ait des corruptions dans la sortie TIC, qui se traduisent par des corruptions dans les messages MQTT:

                                          12:10:39 CFG: Saved to flash at FB, Count 58, Bytes 4096
                                          12:10:39 MQT: tele/tasmota_19FDA8/STATE = {"Time":"2020-08-23T12:10:39","Uptime":"0T00:00:11","UptimeSec":11,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Livebox-FE98","BSSId":"70:FC:8F:49:25:7F","Channel":6,"RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:05"}}
                                          12:10:39 MQT: tele/tasmota_19FDA8/SENSOR = {"Time":"2020-08-23T12:10:39","ENERGY":{"TotalStartTime":"2020-08-22T13:20:46","Total":2.611,"Yesterday":2.106,"Today":0.505,"Period":1,"Power":230,"Current":1.000,"Load":2,"ADCO":"811775074547","OPTARIF":"BASE","ISOUSC":45,"BASE":7822537,"PTEC":"TH..","IINST":1,"HHPHC":"A","MOTDETAT":0,"IMAX":90,"PAPP":230}}
                                          12:10:42 TIC: [26]# rj^5jxGW^FwVASE=007822537
                                          12:10:49 MQT: tele/tasmota_19FDA8/STATE = {"Time":"2020-08-23T12:10:49","Uptime":"0T00:00:21","UptimeSec":21,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Livebox-FE98","BSSId":"70:FC:8F:49:25:7F","Channel":6,"RSSI":96,"Signal":-52,"LinkCount":1,"Downtime":"0T00:00:05"}}
                                          12:10:49 MQT: tele/tasmota_19FDA8/SENSOR = {"Time":"2020-08-23T12:10:49","ENERGY":{"TotalStartTime":"2020-08-22T13:20:46","Total":2.611,"Yesterday":2.106,"Today":0.505,"Period":0,"Power":230,"Current":1.000,"Load":2,"ADCO":"811775074547","OPTARIF":"BASE","ISOUSC":45,"BASE":7822537,"PTEC":"TH..","IINST":1,"HHPHC":"A","MOTDETAT":0,"IMAX":90,"PAPP":230,"rj^5jxGW^FwVASE":7822537}}
                                          

                                          Est-ce ma faute, est-ce que quelqu'un a déjà vu ça?

                                          Une fois que la sortie TIC s'est plantée, on dirait que les données restent dans les messages MQTT suivants (même si la sortie TIC semble être "rétablie").

                                          Rémy

                                          CharlesC 1 Reply Last reply Reply Quote
                                          • SebHS Offline
                                            SebH @Charles
                                            last edited by

                                            @Charles

                                            Désolé pour le retard, je rentre de déplacement et j'ai enfin 5 minutes. Donc j'ai tester la dernière version en mode standard. Donc, le système ne voit rien du tout (aucune remonté de l'intensité et de la puissance apparente et des index ) et pourtant les données arrivent bien (j'ai pu refaire un log des données qui arrive sur la pin Rx)...

                                            1 Reply Last reply Reply Quote
                                            • First post
                                              Last post

                                            3

                                            Online

                                            5.7k

                                            Users

                                            534

                                            Topics

                                            5.0k

                                            Posts

                                            Top Topics

                                            • Denky 4 - Domoticz - Triphasé -
                                              Nicolas BernaertsN
                                              Nicolas Bernaerts
                                              0
                                              7
                                              266

                                            • Denky D4 et Linky Standard TInfo Rx Non Configuré
                                              CharlesC
                                              Charles
                                              0
                                              5
                                              303

                                            Popular Tags

                                            teleinfo
                                            24 topics
                                            arduino
                                            19 topics
                                            remora
                                            16 topics
                                            esp8266
                                            10 topics
                                            arduipi
                                            10 topics
                                            wifinfo
                                            7 topics
                                            raspberry
                                            7 topics
                                            broadcast
                                            7 topics
                                            Copyright © 2022 Charles-Henri Hallard | Return to blog page | Powered by NodeBB