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 @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
                          • T
                            tobiasp @tobiasp last edited by

                            @tobiasp sms und smpr
                            Nochwas anderes hier ist mein neues Script. Wird der Zählerstand um 0 Uhr aktualiesiert oder muss ich im Script was einfügen. Bei Monatsanfang und JAhresanfang hab ich den Zählerstand eingefügt bei sma und glaub sya.

                            >D
                            
                            rssi=0
                            
                            s1="Tagesverbrauch: {m}<b><span style=>"
                            
                            v2=0
                            
                            hr=0
                            
                            md=0
                            
                            yr=0
                            
                            ;Strom
                            
                            sm=0
                            
                            sd=0
                            
                            sma=4052.4
                            
                            smn=0
                            
                            sya=4052.4
                            
                            syn=0
                            
                            sspr=0.2297
                            
                            yspr=0
                            
                            ysgp=184.80
                            
                            y€=0
                            
                             
                            
                            >T
                            
                            v2=SML#Total_in
                            
                            rssi=Wifi#RSSI
                            
                             
                            
                            >B
                            
                            ->sensor53 r
                            
                             
                            
                            >S
                            
                            ;Tagesverbrauch
                            
                            hr=hours
                            
                            if chg[hr]>0
                            
                            and hr==0
                            
                            and v2>0
                            
                            then
                            
                            sm=v2
                            
                            svars
                            
                            endif
                            
                            if upsecs%tper==0
                            
                            then
                            
                            sd=v2-sm
                            
                             
                            
                            ;Monatsverbrauch
                            
                            md=day
                            
                            if chg[md]>0
                            
                            and hr==0
                            
                            and md==1
                            
                            and v2>0
                            
                            then
                            
                            sma=v2
                            
                            svars
                            
                            endif
                            
                            if upsecs%tper==0
                            
                            then
                            
                            smn=v2-sma
                            
                            endif
                            
                             
                            
                            ;Jahresverbrauch
                            
                            yr=year
                            
                            if chg[yr]>0
                            
                            and hr==0
                            
                            and md==1
                            
                            and v2>0
                            
                            then
                            
                            sya=v2
                            
                            svars
                            
                            endif
                            
                            if upsecs%tper==0
                            
                            then
                            
                            syn=v2-sya
                            
                             
                            
                            ;Kosten
                            
                            yspr=syn*sspr+ysgp
                            
                            endif
                            
                             
                            
                            >J
                            
                            ,"Verbrauch Tag":"%sd%"
                            
                            ,"Verbrauch Monat":"%smn%"
                            
                            ,"Verbrauch Jahr":"%syn%"
                            
                            ,"Zählerstand 0:00Uhr":"%2sm%"
                            
                            ,"Zählerstand Monatsanfang":"%2sma%"
                            
                            ,"Zählerstand Jahrenanfang":"%2sya%"
                            
                            ,"Kosten dieses Jahr":"%2yspr%"
                            
                             
                            
                            >W
                            
                            WLAN Empfang: {m}%rssi% dBµV
                            
                            -------------------------------------------------------------------------------
                            
                            Tagesverbrauch:  {m} %2sd%  kWh
                            
                            Monatsverbrauch: {m} %2smn% kWh
                            
                            Jahresverbrauch: {m} %2syn% kWh
                            
                            Strom Preis/kWh:       {m} %4sspr% €
                            
                            Strom Grundpreis:      {m} %2ysgp% €
                            
                            -------------------------------------------------------------------------------
                            
                            Strom kosten lfd. Jahr:{m} %2yspr% €
                            
                            Strom Zählerstände:
                            
                            aktuell:         {m} %2v2% kWh
                            
                            0:00 Uhr:        {m} %2sm% kWh
                            
                            Monatsanfang:    {m} %2sma% kWh
                            
                            Jahresanfang:    {m} %2sya% kWh
                            
                            
                            >M 1
                            
                            +1,3,s,0,9600,SML
                            
                            1,77070100010800ff@1000,Gesamtverbrauch,KWh,Total_in,2 
                            
                            1,77070100020800ff@1000,Gesamtproduktion,kWh,Total_out,2
                            
                            1,77070100100700ff@1,akt. Verbrauch,W,Power_curr,2
                            
                            1,77070100240700ff@1,L1,W,L1,18
                            
                            1,77070100380700ff@1,L2,W,L2,18
                            
                            1,770701004C0700ff@1,L3,W,L3,18
                            
                            1,77070100000009ff@#,Zählernummer,,Meter_number,0
                            
                            1,=h===============|
                            
                            #
                            
                            1 Reply Last reply Reply Quote 0
                            • T
                              tobiasp @tobiasp last edited by

                              @tobiasp
                              Jetzt kommen die Werte an. Ich mustste am Adapter noch nen Hacken setzen. Danke erstmal

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

                                @tobiasp
                                schön, das es jetzt funktioniert. Zeigt das Script jetzt auch auf der Weboberfläche die richtigen Daten an?

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                521
                                Online

                                31.7k
                                Users

                                79.6k
                                Topics

                                1.3m
                                Posts

                                d0-schnittstelle esp8266 sml sonoff stromzähler stromzähler auslesen tasmota volkszähler
                                83
                                562
                                168303
                                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