Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. Stromzähler per Sonoff ESP8266 auslesen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Stromzähler per Sonoff ESP8266 auslesen

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TT-Tom @RalfTh last edited by

      @ralfth
      was für ein Ausfall Stromausfall oder Wemos defekt?

      Bei Stromausfall kann es möglich sein, dass es wie @euro schrieb, das du dein Zähler neu freischalten musst.
      Die Daten aus der Konsole sehen nicht konform aus, kann sein das du den Kopf nochmal etwas justieren musst. Aber zuerst Prüfen, ob Pin off und Info on eingestellt sind am Zähler.

      RalfTh 1 Reply Last reply Reply Quote 0
      • RalfTh
        RalfTh @TT-Tom last edited by RalfTh

        @tt-tom
        OK, ich muss es genauer beschreiben.
        Der Wemos war ausgeschaltet. Nach dem einschalten war das Skript weg. Ein zuvor gemachtes Backup des Wemos habe ich zurückgespielt. Es geht wieder alles bis auf die aktuelle Leistungsanzeige. Ich gehe also davon aus, dass der Zähler entsperrt ist, da er Daten zur aktuellen 2.0.8 (Zählerstand Einspeisung) und 1.0.8 (Zählerstand Bezug) liefert.

        Habe das Skript von euro mal aktiviert und folgende Ergebnisse:

        00:00:00 CFG: aus Flash geladen am 3F7, zählen 29
        00:00:00 Script: nv=0, tv=0, vns=0, ram=16
        00:00:00 Projekt tasmota Tasmota-Stromzähler Version 8.1.0.4(tasmota)-2_6_1
        00:00:00 SNS: Hardware Serial
        00:00:00 WIF: verbinden mit AP1 Palatina in Modus 11N als tasmota-5164...
        00:00:05 WIF: verbunden
        00:00:05 HTP: Web-Server aktiv bei tasmota-5164 mit IP-Adresse 192.168.178.152
        12:45:49 MQT: Verbindungsversuch...
        12:45:49 MQT: verbunden
        12:45:49 MQT: tele/tasmota/LWT = Online (beibehalten)
        12:45:49 MQT: cmnd/tasmota/POWER = 
        12:45:49 MQT: tele/tasmota/INFO1 = {"Module":"Generic","Version":"8.1.0.4(tasmota)","FallbackTopic":"cmnd/Stromzähler_fb/","GroupTopic":"cmnd/tasmotas/"}
        12:45:49 MQT: tele/tasmota/INFO3 = {"RestartReason":{"Exception":28,"Reason":"Exception","EPC":["4024ee18","00000000","00000000"],"EXCVADDR":"00000000","DEPC":"00000000","CallChain":["4024c70a","4024670e","40221c4a","40245199","40222408","40004554","4024a550","40100a80","4020f74c","40227898","402278c3","40229921","4022df42","402467f4","401009e5"]}}
        12:45:53 MQT: tele/tasmota/STATE = {"Time":"2023-10-17T12:45:53","Uptime":"0T00:00:12","UptimeSec":12,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":24,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:06"}}
        12:45:53 MQT: tele/tasmota/SENSOR = {"Time":"2023-10-17T12:45:53","OBIS":{"Total_in":0.0000,"Total_out":0.0000,"Power_curr":0,"Meter_number":""}}
        12:46:03 MQT: tele/tasmota/STATE = {"Time":"2023-10-17T12:46:03","Uptime":"0T00:00:22","UptimeSec":22,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:06"}}
        12:46:03 MQT: tele/tasmota/SENSOR = {"Time":"2023-10-17T12:46:03","OBIS":{"Total_in":0.0000,"Total_out":0.0000,"Power_curr":0,"Meter_number":""}}
        12:46:13 MQT: tele/tasmota/STATE = {"Time":"2023-10-17T12:46:13","Uptime":"0T00:00:32","UptimeSec":32,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:06"}}
        12:46:13 MQT: tele/tasmota/SENSOR = {"Time":"2023-10-17T12:46:13","OBIS":{"Total_in":0.0000,"Total_out":0.0000,"Power_curr":0,"Meter_number":""}}
        12:46:23 MQT: tele/tasmota/STATE = {"Time":"2023-10-17T12:46:23","Uptime":"0T00:00:42","UptimeSec":42,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:06"}}
        12:46:23 MQT: tele/tasmota/SENSOR = {"Time":"2023-10-17T12:46:23","OBIS":{"Total_in":0.0000,"Total_out":0.0000,"Power_curr":0,"Meter_number":""}}
        

        Es wird jetzt natürlich nichts mehr angezeigt, ich vermute das liegt daran:
        +1,3,s,0,9600,

        Bei mir war das so:
        +1,13,s,1,9600,SML

        Wo finde ich denn ein aktuelles Skript für meinen Zähler bzw. Hilfe beim Erstellen eines Skriptes?

        Ist es sinnvoll den Wemos auf die aktuelle Tasmota V13 zu flashen?

        Bisher war meine Devise "Don't touch running systems"

        Ralla66 T 2 Replies Last reply Reply Quote 0
        • Ralla66
          Ralla66 Most Active @RalfTh last edited by Ralla66

          @ralfth

          schau mal hier vorbei

          >D
          >B
          
          =>sensor53 r
          >M 1
          +1,3,s,0,9600,
          1,77070100010800ff@1000,Gesamtverbrauch,KWh,Total_in,2
          1,77070100020800ff@1000,Gesamteinspeisung,KWh,Total_out,2
          1,77070100100700ff@1,Verbrauch,W,Power_curr,0
          #
          

          Beachte den RX Pin, 3 oder 13

          RalfTh 1 Reply Last reply Reply Quote 1
          • T
            TT-Tom @RalfTh last edited by

            @ralfth

            Es ist entscheidend, ob hinter der Baudzahl ein Text steht. Dieser findet in der Objektstruktur vom MQTT sich wieder.

            Wo finde ich denn ein aktuelles Skript für meinen Zähler bzw. Hilfe beim Erstellen eines Skriptes?

            Auf der Tasmota Seite findest du Scripte für verschiedene Zähler, bzw Informationen für die Erstellung dieser. Link Text

            1 Reply Last reply Reply Quote 0
            • T
              TT-Tom last edited by TT-Tom

              Doppel Post

              1 Reply Last reply Reply Quote 0
              • RalfTh
                RalfTh @Ralla66 last edited by

                @ralla66 sagte in Stromzähler per Sonoff ESP8266 auslesen:

                1,77070100100700ff@1,

                Das wars, bei mir stand 1,770701000f0700ff@1,

                Jetzt funktioniert alles. Wie das allerdings passieren konnte ist mir ein Rätsel.

                T 1 Reply Last reply Reply Quote 0
                • T
                  tobiasp @RalfTh last edited by tobiasp

                  Hallo zusammen,
                  mein Sonoff sendet fleissig Daten an den IO Broker.
                  Er sendet allerdings nur den akt. Verbrauch und des Gesamtstand.

                  Was im Broker nicht ankommt ist
                  SML L1
                  SML L2
                  SML L3
                  Einspeisung

                  Wie bekomme ich die Daten in den Broker

                  Neuschwansteini 1 Reply Last reply Reply Quote 0
                  • Neuschwansteini
                    Neuschwansteini @tobiasp last edited by

                    @tobiasp

                    zeigt der Zaehler die Werte denn ueberhaupt an?
                    Oft sind diese nicht vom Versorger freigeschaltet...

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tobiasp @Neuschwansteini last edited by

                      @ilovegym
                      Ja werden angezeigt

                      T Neuschwansteini 2 Replies Last reply Reply Quote 0
                      • T
                        TT-Tom @tobiasp last edited by TT-Tom

                        @tobiasp

                        Den Info Parameter hast du auch auf On gesetzt?
                        Wie sieht den das Script auf dem ESP aus? Sind dort die Werte hinterlegt?

                        1 Reply Last reply Reply Quote 0
                        • Neuschwansteini
                          Neuschwansteini @tobiasp last edited by Neuschwansteini

                          @tobiasp

                          Hier ist ne sehr gute Hilfeseite, geh das mal durch...

                          https://ottelo.jimdofree.com/stromzähler-auslesen-tasmota/

                          Edit:
                          https://tasmota-sml-parser.dicp.net/

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            tobiasp @Neuschwansteini last edited by tobiasp

                            @ilovegym
                            Genau nachdem hab ich alles gemacht. Auf der Seite von Tasmota hab ich ja alle Werte,
                            nur im Iobroker fehlen eben L1,L2,L3 und Einspeisung als Datenpunkt.

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              TT-Tom @tobiasp last edited by

                              @tobiasp zeige mal das Script von Tasmota

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                tobiasp @TT-Tom last edited by

                                @tt-tom ```

                                D

                                B
                                ->sensor53 r

                                M 1
                                +1,3,s,0,9600,SML

                                1,=h=================

                                1,77070100010800ff@1000,Gesamtverbrauch,KWh,Total_in,2

                                1,=h=================

                                1,77070100100700ff@1,akt. Verbrauch,W,Power_curr,2

                                1,=h=================

                                1,77070100020800ff@1000,Gesamte Einspeisung,kWh,Total_out,2

                                1,=h=================

                                1,77070100240700FF@1,Wirkleistung L1,W,wirkleistung_l1,0

                                1,=h=================

                                1,77070100380700FF@1,Wirkleistung L2,W,wirkleistung_l2,0

                                1,=h=================

                                1,770701004C0700FF@1,Wirkleistung L3,W,wirkleistung_l3,0

                                1,=h=================

                                1,77070100000009ff@#,Zählernummer,,Meter_number,0

                                1,=h=================

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  TT-Tom @tobiasp last edited by

                                  @tobiasp

                                  die ersten drei ``` müssen eine Zeile tiefer.

                                  Kürze bitte mal das ein auf pow_l1 usw. , du hast nur eine bestimmte Anzahl an Zeichen (7).

                                  Prefix for Web UI and MQTT JSON payload. Up to 7 characters. link

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    tobiasp @TT-Tom last edited by

                                    @tt-tom
                                    Was meinst du mit eins Runter? bzw einkürzen?

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      TT-Tom @tobiasp last edited by TT-Tom

                                      @tobiasp

                                      Sorry am Handy ist da was schief gelaufen. So jetzt nochmal von zu Hause aus.

                                      zeige bitte mal was in der Konsole von Tasmota potokolliert wird. sollte ungefähr so aussehen

                                      PS die CodeTags ``` müssen in einer neuen Zeile fangen, damit es funktioniert, siehe dein Post mit dem Script

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        tobiasp @TT-Tom last edited by

                                        @tt-tom
                                        17:34:13.424 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:13","SML":{"Total_in":4182.09,"Total_out":213.57,"Power_curr":627.00,"L1":222.00,"L2":399.00,"L3":5.00,"Meter_number":"090149534b00050ce521"}}
                                        17:34:13.988 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:13","SML":{"L1":218.00}}
                                        17:34:13.996 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:13","SML":{"L2":400.00}}
                                        17:34:14.007 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:14","SML":{"L3":4.00}}
                                        17:34:15.075 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:15","SML":{"L1":227.00}}
                                        17:34:15.094 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:15","SML":{"L2":398.00}}
                                        17:34:15.116 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:15","SML":{"L3":5.00}}
                                        17:34:16.215 MQT: tele/tasmota_68FAA1/SENSOR = {"Time":"2024-01-11T17:34:16","SML":{"L1":220.00}}

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          TT-Tom @tobiasp last edited by TT-Tom

                                          @tobiasp sagte in Stromzähler per Sonoff ESP8266 auslesen:

                                          {"Total_in":4182.09,"Total_out":213.57,"Power_curr":627.00,"L1":222.00,"L2":399.00,"L3":5.00,"Meter_number":"090149534b00050ce521"}}

                                          die ersten drei Werte passen ja noch zu deinem Script, aber warum dann L1 -L3 kommt, wo im Script etwas anderes steht, sehr komisch.
                                          wie es aus sieht, aktualisiert er sekundenweise die Phasen. wie sieht es denn im Sonoff Adapter aus?

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            tobiasp @TT-Tom last edited by

                                            @tt-tom
                                            Die drei Werte "SML":"Total-in":"2182.09,"Total-out":213.57,"Power-Curry"":22.00, kommen an.
                                            L1 usw nicht.

                                            T 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            679
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            d0-schnittstelle esp8266 sml sonoff stromzähler stromzähler auslesen tasmota volkszähler
                                            83
                                            562
                                            173880
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo