Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Praktische Anwendungen (Showcase)
  4. Stromzähler per Sonoff ESP8266 auslesen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    307

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

Stromzähler per Sonoff ESP8266 auslesen

Scheduled Pinned Locked Moved Praktische Anwendungen (Showcase)
stromzähler auslesensonoffesp8266tasmotasmld0-schnittstellevolkszählerstromzähler
562 Posts 83 Posters 220.4k Views 84 Watching
  • 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.
  • RalfThR 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"

    T Offline
    T Offline
    TT-Tom
    wrote on last edited by
    #543

    @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

    Gruß Tom
    https://github.com/tt-tom17
    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

    NSPanel Script Wiki
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    NSPanel Adapter Wiki
    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TT-Tom
      wrote on last edited by TT-Tom
      #544

      Doppel Post

      Gruß Tom
      https://github.com/tt-tom17
      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

      NSPanel Script Wiki
      https://github.com/joBr99/nspanel-lovelace-ui/wiki

      NSPanel Adapter Wiki
      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

      1 Reply Last reply
      0
      • Ralla66R 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

        RalfThR Offline
        RalfThR Offline
        RalfTh
        wrote on last edited by
        #545

        @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.

        Wir haben uns verirrt, kommen aber gut voran.

        T 1 Reply Last reply
        0
        • RalfThR RalfTh

          @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 Offline
          T Offline
          tobiasp
          wrote on last edited by tobiasp
          #546

          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

          ? 1 Reply Last reply
          0
          • T 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

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #547

            @tobiasp

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

            T 1 Reply Last reply
            0
            • ? A Former User

              @tobiasp

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

              T Offline
              T Offline
              tobiasp
              wrote on last edited by
              #548

              @ilovegym
              Ja werden angezeigt

              T ? 2 Replies Last reply
              0
              • T tobiasp

                @ilovegym
                Ja werden angezeigt

                T Offline
                T Offline
                TT-Tom
                wrote on last edited by TT-Tom
                #549

                @tobiasp

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

                Gruß Tom
                https://github.com/tt-tom17
                Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                NSPanel Script Wiki
                https://github.com/joBr99/nspanel-lovelace-ui/wiki

                NSPanel Adapter Wiki
                https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                1 Reply Last reply
                0
                • T tobiasp

                  @ilovegym
                  Ja werden angezeigt

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by A Former User
                  #550

                  @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
                  0
                  • ? A Former User

                    @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 Offline
                    T Offline
                    tobiasp
                    wrote on last edited by tobiasp
                    #551

                    @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
                    0
                    • T 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 Offline
                      T Offline
                      TT-Tom
                      wrote on last edited by
                      #552

                      @tobiasp zeige mal das Script von Tasmota

                      Gruß Tom
                      https://github.com/tt-tom17
                      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                      NSPanel Script Wiki
                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                      NSPanel Adapter Wiki
                      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                      T 1 Reply Last reply
                      0
                      • T TT-Tom

                        @tobiasp zeige mal das Script von Tasmota

                        T Offline
                        T Offline
                        tobiasp
                        wrote on last edited by
                        #553

                        @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
                        0
                        • T tobiasp

                          @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 Offline
                          T Offline
                          TT-Tom
                          wrote on last edited by
                          #554

                          @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

                          Gruß Tom
                          https://github.com/tt-tom17
                          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                          NSPanel Script Wiki
                          https://github.com/joBr99/nspanel-lovelace-ui/wiki

                          NSPanel Adapter Wiki
                          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                          T 1 Reply Last reply
                          0
                          • T TT-Tom

                            @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 Offline
                            T Offline
                            tobiasp
                            wrote on last edited by
                            #555

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

                            T 1 Reply Last reply
                            0
                            • T tobiasp

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

                              T Offline
                              T Offline
                              TT-Tom
                              wrote on last edited by TT-Tom
                              #556

                              @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

                              Gruß Tom
                              https://github.com/tt-tom17
                              Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                              NSPanel Script Wiki
                              https://github.com/joBr99/nspanel-lovelace-ui/wiki

                              NSPanel Adapter Wiki
                              https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                              T 1 Reply Last reply
                              0
                              • T 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 Offline
                                T Offline
                                tobiasp
                                wrote on last edited by
                                #557

                                @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
                                0
                                • T tobiasp

                                  @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 Offline
                                  T Offline
                                  TT-Tom
                                  wrote on last edited by TT-Tom
                                  #558

                                  @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?

                                  Gruß Tom
                                  https://github.com/tt-tom17
                                  Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                  NSPanel Script Wiki
                                  https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                  NSPanel Adapter Wiki
                                  https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                  T 1 Reply Last reply
                                  0
                                  • T 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 Offline
                                    T Offline
                                    tobiasp
                                    wrote on last edited by
                                    #559

                                    @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
                                    0
                                    • T tobiasp

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

                                      T Offline
                                      T Offline
                                      tobiasp
                                      wrote on last edited by
                                      #560

                                      @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
                                      0
                                      • T tobiasp

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

                                        T Offline
                                        T Offline
                                        tobiasp
                                        wrote on last edited by
                                        #561

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

                                        1 Reply Last reply
                                        0
                                        • T Offline
                                          T Offline
                                          TT-Tom
                                          wrote on last edited by
                                          #562

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

                                          Gruß Tom
                                          https://github.com/tt-tom17
                                          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                          NSPanel Script Wiki
                                          https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                          NSPanel Adapter Wiki
                                          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          592

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe