Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Payload String zerlegen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Payload String zerlegen

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @1984chris last edited by mickym

      @1984chris sagte in Payload String zerlegen:

      @mickym

      das Foto ist schon als ich die Umstellung gemacht habe.

      Wenn Du die mqtt Node bereits umgestellt hättest, dann sollte die Ausgabe Deiner Debug Node so aussehen:

      ae44f5fa-32a1-4a54-9bb5-1743a55926b5-image.png

      Du hattest vorher

      e278b8bd-8a41-4e3e-8d9e-c523c257a94f-image.png
      eingestellt.

      1 1 Reply Last reply Reply Quote 0
      • 1
        1984chris @mickym last edited by

        @mickym NodeDebug.jpg

        mickym 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @1984chris last edited by mickym

          @1984chris Ja das ist ein Buffer

          Schau mal in der mqtt Node - dass das drin steht:

          bedf379a-2ed3-46a0-89e6-64a104bbd5e6-image.png

          Das müsste auch so voreingestellt gewesen sein - das hast Du sonst nachträglich umgestellt.

          Welche NodeRed Version nutzt du denn?

          1 1 Reply Last reply Reply Quote 0
          • 1
            1984chris @mickym last edited by

            @mickym

            das ist meine Einstellung

            MQTT.jpg

            NodeRed V3.0.2

            mickym 1 Reply Last reply Reply Quote 0
            • mickym
              mickym Most Active @1984chris last edited by mickym

              @1984chris Zieh bitte nochmal eine neue Mqtt-In Node raus - lass den QoS auf 2 - ändere gar nichts und trage nur das Topic ein.

              0d1a30b6-a024-433a-8558-2e6ec22be91b-image.png

              Bei mir kommen auch Objekte raus. Hast Du Deinen Broker auf Version 3.1.1 eingestellt?

              Und ich habe es auch den tele/SENSOR topic bei mir eingestellt.

              Das Intervall wie oft der tele Ast sendet stellst Du über die TelePeriod in der Tasmota Konsole ein:

              6a6cde76-dfb9-4afa-939f-c43ed71827fb-image.png

              1 1 Reply Last reply Reply Quote 0
              • 1
                1984chris @mickym last edited by

                @mickym

                MQTT_neu.jpg

                entweder bin ich zu blöd oda keine Ahnung warum das nicht geht

                mickym 2 Replies Last reply Reply Quote 0
                • mickym
                  mickym Most Active @1984chris last edited by

                  @1984chris Was nutzt Du für ein mqtt-Broker? mosquitto?

                  1 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @1984chris last edited by

                    @1984chris Ok - dann machen wir das anders. Stellst Du mal

                    032bb7db-51af-471f-8e54-c031d79c8e49-image.png

                    um und zeig dann mal die Debug Ausgabe.

                    1 Reply Last reply Reply Quote 0
                    • 1
                      1984chris @mickym last edited by

                      @mickym

                      ja mosquitto 1.6.15

                      mickym 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @1984chris last edited by

                        @1984chris Ich habe die Befürchtung - dass das an irgendwelchen Sonderzeichen liegt. Kannst Du mal bitte schauen, dass Du in Deinem Tasmota Konfig - KEINE Umlaute oder SONDERZEICHEN verwendest`?

                        1 1 Reply Last reply Reply Quote 0
                        • 1
                          1984chris @mickym last edited by

                          @mickym MQTT2.jpg

                          1 1 Reply Last reply Reply Quote 0
                          • 1
                            1984chris @1984chris last edited by

                            @1984chris

                            was meinst du genau mit Tasmota Config?

                            mickym 1 2 Replies Last reply Reply Quote 0
                            • mickym
                              mickym Most Active @1984chris last edited by

                              @1984chris Na zum Beispiel WäPu - sonwas ist gefährlich. Dann lieber WaePu - aber keine Umlaut.

                              Jetzt mach mal zwischen Deine mqtt-In NOde und die Debug Node eine JSON Node und schau was dann raus kommt. Du musst nichts in der JSON Node konfigurieren.

                              1 Reply Last reply Reply Quote 0
                              • 1
                                1984chris @1984chris last edited by

                                @1984chris

                                hier ein Foto von der Tasmota Console,
                                da steht nur Tagstrom und sonst nichts ist das Normal?
                                Tasmota_Console.jpg

                                1 mickym 2 Replies Last reply Reply Quote 0
                                • 1
                                  1984chris @1984chris last edited by

                                  @1984chris

                                  jetzt kommt ein Fehler

                                  Fehler_Token.jpg

                                  mickym 1 Reply Last reply Reply Quote 0
                                  • mickym
                                    mickym Most Active @1984chris last edited by

                                    @1984chris Nein eben nicht - hinter dem Tagstrom ist ein komisches Steuerzeichen und deswegen funktioniert der ganze JSON String nicht.

                                    1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @1984chris last edited by

                                      @1984chris

                                      @1984chris sagte in Payload String zerlegen:

                                      @1984chris

                                      jetzt kommt ein Fehler

                                      Fehler_Token.jpg

                                      Ja genau - und das ist die Ursache - dass das Objekt kaputt ist. 😉

                                      Das ist dieses komische Zeichen, was Du auch

                                      {"Time":"2023-05-16T19:45:29","Tagstrom":{"V_L1":233,"V_L3":236,"V_L3":236,"A_L1":0.63,"A_L2":2.33,"A_L3":0.32,"W_IN":590,"W_OUT":0,"kWh_total_IN":19147.756,"kWh_total_OUT":776.383},"WäPu":{"V_L1":232,"V_L3":236,"V_L3":235,"A_L1":0.48,"A_L2":0.00,"A_L3":0.02,"W_IN":112,"W_OUT":0,"kWh_total_IN":21698.535,"kWh_total_OUT":0.000}}
                                      

                                      https://forum.iobroker.net/post/992609

                                      gepostet hast. Also irgendwo - wo Du ggf. Tagstrom eingegeben hast - ist ein komisches Sonderzeichen drin.

                                      1 mickym 2 Replies Last reply Reply Quote 0
                                      • 1
                                        1984chris @mickym last edited by

                                        @mickym
                                        Das habe ich im Tasmota Script lese damit 2 Smartmeter Zähler aus.

                                        >D
                                        
                                        >B
                                        smlj=0
                                        =>sensor53 r
                                        >R
                                        smlj=0
                                        >S
                                        if upsecs>22
                                        then
                                        smlj|=1
                                        endif
                                        >M 2
                                        +1,16,r,0,2400,Tagstrom,
                                        1,=so3,512
                                        1,=so4,413F4428472B4B6150645367566B5970
                                        1,020Ex1UUuu@1,Spannung L1,V,V_L1,0
                                        1,020Ex4UUuu@1,Spannung L2,V,V_L3,0
                                        1,020Ex7UUuu@1,Spannung L3,V,V_L3,0
                                        1,020Ex10UUuu@100,Strom L1,A,A_L1,2
                                        1,020Ex13UUuu@100,Strom L2,A,A_L2,2
                                        1,020Ex16UUuu@100,Strom L3,A,A_L3,2
                                        1,020Ex19UUuuUUuu@1,Leistung +P,W,W_IN,0
                                        1,020Ex24UUuuUUuu@1,Leistung -P,W,W_OUT,0
                                        1,020Ex29UUuuUUuu@1000,Zählerstand +P,kWh,kWh_total_IN,3
                                        1,020Ex34UUuuUUuu@1000,Zählerstand -P,kWh,kWh_total_OUT,3
                                        
                                        +2,17,r,0,2400,WäPu,
                                        2,=so3,512
                                        2,=so4,6B58703273357638782F413F4428472B
                                        2,020Ex1UUuu@1,Spannung L1,V,V_L1,0
                                        2,020Ex4UUuu@1,Spannung L2,V,V_L3,0
                                        2,020Ex7UUuu@1,Spannung L3,V,V_L3,0
                                        2,020Ex10UUuu@100,Strom L1,A,A_L1,2
                                        2,020Ex13UUuu@100,Strom L2,A,A_L2,2
                                        2,020Ex16UUuu@100,Strom L3,A,A_L3,2
                                        2,020Ex19UUuuUUuu@1,Leistung +P,W,W_IN,0
                                        2,020Ex24UUuuUUuu@1,Leistung -P,W,W_OUT,0
                                        2,020Ex29UUuuUUuu@1000,Zählerstand +P,kWh,kWh_total_IN,3
                                        2,020Ex34UUuuUUuu@1000,Zählerstand -P,kWh,kWh_total_OUT,3
                                        #
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • mickym
                                          mickym Most Active @mickym last edited by mickym

                                          @mickym Dann mach in Zeile 28 mal den Umlaut raus - und schreib die Zeile 14 neu - und lösch mal die Zeile 27 (oder mach auch ein #) - vielleicht ist das komisch. Du kannst das ja ggf. wieder rückgängig machen.

                                          Jedenfalls muss das Sonderzeichen nach dem Wort Tagstrom raus.

                                          1 1 Reply Last reply Reply Quote 0
                                          • 1
                                            1984chris @mickym last edited by

                                            @mickym

                                            Wenn ich statt Tagstrom nur Strom eingebe bekomme ich

                                            MQTTok.jpg

                                            so sollte es sein oder? verstehe ich nicht

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            544
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            77
                                            12568
                                            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