Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Gosund SP111 mit Tasmota 13.2.0 Problem mit DP

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Gosund SP111 mit Tasmota 13.2.0 Problem mit DP

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

      @ralfth

      alle print des Scriptes werden in der Console nicht ausgegeben, bedeutet dein Script läuft nicht.
      Topic ist noch Reserve2 und nicht default.
      Ob deine .bin überhaupt in Ordnung ist weiß keiner.
      Daher das compilieren mit Tasmocompiler. Das ist halt viel einfacher.

      Solange die Topic / Full Topic nicht in Ordnung sind und das Script nicht läuft kann
      ich auch nicht weiter helfen. Da es ja bei mir läuft liegt das ja an deinem System.

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

        @ralla66 sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

        alle print des Scriptes werden in der Console nicht ausgegeben, bedeutet dein Script läuft nicht.

        Hatte ich auch geschrieben, dass das Script nicht aktiviert ist.

        Meine .bin habe ich mit Gitpod kompiliert (Quelle: https://github.com/arendst/Tasmota) und alle von dir genannten Defines, soweit in my_user_config.h vorhanden, aktiviert. In einem Post weiter oben hatte ich das auch schon erwähnt.
        Diese .bin habe ich dann auf den Gosund geflasht.

        Das Script habe ich jetzt aktiviert und in der Konsole kommt folgende Fehlermeldung:

        17:32:38.869 SCR: performs "websend [192.168.178.164] /cm?cmnd=status 10"
        17:32:44.249 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Connect failed"}
        17:32:44.257 MQT: stat/tasmota_B8D3E7/RESULT = {"Total":0}
        17:32:44.264 MQT: stat/tasmota_B8D3E7/RESULT = {"Yesterday":0}
        17:32:44.272 MQT: stat/tasmota_B8D3E7/RESULT = {"Today":0}
        17:32:44.279 MQT: stat/tasmota_B8D3E7/RESULT = {"ApparentPower":0}
        17:32:44.286 MQT: stat/tasmota_B8D3E7/RESULT = {"ReactivePower":0.00}
        17:32:44.293 MQT: stat/tasmota_B8D3E7/RESULT = {"Power":0}
        17:32:44.300 MQT: stat/tasmota_B8D3E7/RESULT = {"Voltage":0}
        17:32:44.307 MQT: stat/tasmota_B8D3E7/RESULT = {"Current":0}
        17:32:48.393 MQT: tele/tasmota_B8D3E7/STATE = {"Time":"2023-11-15T17:32:48","Uptime":"0T10:55:26","UptimeSec":39326,"Heap":20,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":4,"POWER":"ON","Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"Mode":"11n","RSSI":96,"Signal":-52,"LinkCount":1,"Downtime":"0T00:00:03"}}
        17:32:48.406 MQT: tele/tasmota_B8D3E7/SENSOR = {"Time":"2023-11-15T17:32:48","ENERGY":{"TotalStartTime":"2020-06-30T13:38:42","Total":0.544,"Yesterday":0.170,"Today":0.043,"Period":1,"Power":42,"ApparentPower":42,"ReactivePower":0,"Factor":1.00,"Voltage":230,"Current":0.181}}
        17:32:54.371 SCR: performs "websend [192.168.178.164] /cm?cmnd=status 10"
        17:32:59.783 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Connect failed"}
        17:32:59.792 MQT: stat/tasmota_B8D3E7/RESULT = {"Total":0}
        17:32:59.799 MQT: stat/tasmota_B8D3E7/RESULT = {"Yesterday":0}
        17:32:59.808 MQT: stat/tasmota_B8D3E7/RESULT = {"Today":0}
        17:32:59.815 MQT: stat/tasmota_B8D3E7/RESULT = {"ApparentPower":0}
        17:32:59.823 MQT: stat/tasmota_B8D3E7/RESULT = {"ReactivePower":0.00}
        

        Die IP für das websend ist die des ioBroker oder der Gosund?

        Hier noch mal mein Script:

        >D
         
        ;a valid script must start with >D in the first line
         
         
        Timer=0
         
        WEBQ=5
         
        VOL=0
        CUR=0
        POW=0
        TOT=0
        YES=0
        TOD=0
        APP=0
        RAP=0
         
        ; Meins
         
        ; MQT: tasmota_Reserve2 = {"StatusSNS":{"Time":"2023-11-14T12:59:46","ENERGY":{"TotalStartTime":"2020-06-30T13:38:42","Total":0.424,"Yesterday":0.007,"Today":0.093,"Power":42,"ApparentPower":42,"ReactivePower":0,"Factor":1.00,"Voltage":231,"Current":0.181}}}
         
        >BS
         
        +>subscribe EA, cmnd/%topic%/Total
        +>subscribe EA, cmnd/%topic%/Yesterday
        +>subscribe EA, cmnd/%topic%/Today
        +>subscribe EA, cmnd/%topic%/Power
        +>subscribe EA, cmnd/%topic%/ApparentPower
        +>subscribe EA, cmnd/%topic%/ReactivePower
        +>subscribe EA, cmnd/%topic%/Power
        +>subscribe EA, cmnd/%topic%/Voltage
        +>subscribe EA, cmnd/%topic%/Current
         
        >S
         
        Timer+=1
         
        ;Executed every second 
         
         
        if Timer>10
         
        then
        =>websend [192.168.178.164] /cm?cmnd=status 10
         
        +>publish stat/%topic%/RESULT {"Total":%0TOT%}
        +>publish stat/%topic%/RESULT {"Yesterday":%0YES%}
        +>publish stat/%topic%/RESULT {"Today":%0TOD%}
        +>publish stat/%topic%/RESULT {"ApparentPower":%0APP%}
        +>publish stat/%topic%/RESULT {"ReactivePower":%RAP%}
        +>publish stat/%topic%/RESULT {"Power":%0POW%}
        +>publish stat/%topic%/RESULT {"Voltage":%0VOL%}
        +>publish stat/%topic%/RESULT {"Current":%0CUR%}
         
        Timer=0
         
        endif
         
         
        >E
         
        ;Executed when a Tasmota MQTT RESULT message is received
         
         
        VOL=WebQuery#StatusSNS#ENERGY#Voltage
        print Wert Volt %VOL%
         
        CUR=WebQuery#StatusSNS#ENERGY#Current/1000
        print Wert Current %CUR%
         
        POW=WebQuery#StatusSNS#ENERGY#Power
        print Wert Power %POW%
         
        TOT=WebQuery#StatusSNS#ENERGY#Total
        print Wert Total %TOT%
         
        YES=WebQuery#StatusSNS#ENERGY#Yesterday
        print Wert Yesterday %YES%
         
        TOD=WebQuery#StatusSNS#ENERGY#Today
        print Wert Today %TOD%
         
        APP=WebQuery#StatusSNS#ENERGY#ApparentPower
        print Wert Apparent Power %APP%
         
        RAP=WebQuery#StatusSNS#ENERGY#ReactivePower
        print Wert Reaktive Power %RAP%
         
         
        >W
         
        ;The lines in this section are displayed in the web UI main page
         
                  
        Power{m} %2POW% W
        Volt{m} %2VOL% V
        Ampere{m} %2CUR% A
        Total{m} %2TOT% 
        Yesterday{m} %YES% 
        Today{m} %2TOD% 
        Apparent{m} %2APP% 
        Reactive{m} %2RAP% 
         
         
         
        #
        

        Ich habe es nochmal verglichen. Ich habe lediglich die Zeilen 21 und 45 angepasst.

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

          @ralfth sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

          Die IP für das websend ist die des ioBroker oder der Gosund?

          vom Gosund, das sieht doch gut aus 🙂

          Daten per IP websend kannst du von jedem Tasmota Gerät abfragen der die gleiche
          StatusSNS/Energy/xxx............................ hat.

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

            @ralla66 Ok, dann habe ich es richtig gemacht.

            Allerdings stimmt der Inhalt nicht und diese Meldung scheint die Ursache zu sein:

            18:34:19.588 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Connect failed"}

            Steht auch in meinem letzten Post in der Konsolenausgabe.
            Gebe ich im Browser http://192.168.178.164/cm?cmnd=status 10 ein erhalte ich folgendes:
            {"StatusSNS":{"Time":"2023-11-15T18:37:01","ENERGY":{"TotalStartTime":"2020-06-30T13:38:42","Total":0.556,"Yesterday":0.170,"Today":0.055,"Power":41,"ApparentPower":41,"ReactivePower":0,"Factor":1.00,"Voltage":229,"Current":0.181}}}

            In der Konsole sieht es folgend aus:

            18:38:48.972 MQT: tele/tasmota_B8D3E7/STATE = {"Time":"2023-11-15T18:38:48","Uptime":"0T12:01:26","UptimeSec":43286,"Heap":20,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":4,"POWER":"ON","Wifi":{"AP":1,"SSId":"Palatina","BSSId":"5C:49:79:55:9E:DC","Channel":4,"Mode":"11n","RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:03"}}
            18:38:48.984 MQT: tele/tasmota_B8D3E7/SENSOR = {"Time":"2023-11-15T18:38:48","ENERGY":{"TotalStartTime":"2020-06-30T13:38:42","Total":0.558,"Yesterday":0.170,"Today":0.057,"Period":1,"Power":42,"ApparentPower":42,"ReactivePower":0,"Factor":1.00,"Voltage":229,"Current":0.183}}
            18:38:50.972 SCR: performs "websend [192.168.178.164] /cm?cmnd=status 10"
            18:38:56.176 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Connect failed"}
            18:38:56.184 MQT: stat/tasmota_B8D3E7/RESULT = {"Total":0}
            18:38:56.191 MQT: stat/tasmota_B8D3E7/RESULT = {"Yesterday":0}
            18:38:56.199 MQT: stat/tasmota_B8D3E7/RESULT = {"Today":0}
            18:38:56.206 MQT: stat/tasmota_B8D3E7/RESULT = {"ApparentPower":0}
            18:38:56.213 MQT: stat/tasmota_B8D3E7/RESULT = {"ReactivePower":0.00}
            18:38:56.221 MQT: stat/tasmota_B8D3E7/RESULT = {"Power":0}
            18:38:56.228 MQT: stat/tasmota_B8D3E7/RESULT = {"Voltage":0}
            18:38:56.235 MQT: stat/tasmota_B8D3E7/RESULT = {"Current":0}
            

            In den ersten beiden Zeilen siehst du die JSON-Inhalte, aber ab Zeile 5 sind alle Werte 0??!!

            Ich vermute das liegt am Connection failed in Zeile 4.

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

              @ralfth

              ja richtig, vermute da ist was falsch in Zeile 45 beim send
              Hattest du nicht 2 Gosund ? Dann nimm mal die andere IP

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

                @ralla66 ich habe viele. Du meinst ich soll mal die Daten einer anderen abfragen und publishen?!

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

                  @ralfth
                  ja zum testen ob websend rausgeht und ein Done kommt
                  Nachtrag: lösch mal den Kommentar
                  ; MQT: tasmota_Reserve2 = {"StatusSNS":{"Time":"2023-11-14T12:59:46","ENERGY":{"TotalStart...............................
                  nicht das die Zeile zu lang ist

                  sp111 15112023.jpg

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

                    @ralla66 OK, hier kommt eine DONE. allerdings werden die Die Werte nich ins Result geschrieben. Oder werden sie nicht richt gelesen?

                    18:57:45.317 SCR: performs "websend [192.168.178.151] /cm?cmnd=status 10"
                    18:57:45.391 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Done"}
                    18:57:45.398 MQT: stat/tasmota_B8D3E7/RESULT = {"Total":0}
                    18:57:45.404 MQT: stat/tasmota_B8D3E7/RESULT = {"Yesterday":0}
                    18:57:45.408 MQT: stat/tasmota_B8D3E7/RESULT = {"Today":0}
                    18:57:45.412 MQT: stat/tasmota_B8D3E7/RESULT = {"ApparentPower":0}
                    18:57:45.416 MQT: stat/tasmota_B8D3E7/RESULT = {"ReactivePower":0.00}
                    18:57:45.421 MQT: stat/tasmota_B8D3E7/RESULT = {"Power":0}
                    18:57:45.425 MQT: stat/tasmota_B8D3E7/RESULT = {"Voltage":0}
                    18:57:45.429 MQT: stat/tasmota_B8D3E7/RESULT = {"Current":0}
                    

                    Hier läuft übrigens eine .bin 13.2.0 DE ganz normal von der Tasmota-Seite.

                    @ralfth sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

                    Die folgenden defines sind nicht mehr Bestandteil my_user_config.h

                    #define USE_SCRIPT_GLOBVARS
                    #define USE_SCRIPT_STATUS
                    #define USE_SCRIPT_STATUS
                    #define USE_SCRIPT_FULL_JSON_PARSER
                    #define USE_SCRIPT_JSON_EXPORT
                    #define USE_SCRIPT_WEB_DISPLAY
                    #define USE_SCRIPT_SERIAL
                    #define USE_SML_M

                    Damit steht es nicht in Zusammenhang. Hatte ich weiter oben schon geschrieben.

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

                      @ralfth sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

                      192.168.178.151

                      geprüft im Browser ?
                      Topic ist default ?

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

                        @ralla66 sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

                        @ralfth sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

                        192.168.178.151

                        geprüft im Browser ?
                        Topic ist default ?

                        Ja und Ja

                        Browser-Antwort:
                        {"StatusSNS":{"Time":"2023-11-15T19:10:25","ENERGY":{"TotalStartTime":"2020-01-10T16:35:26","Total":196.003,"Yesterday":0.483,"Today":0.467,"Power":84,"ApparentPower":104,"ReactivePower":61,"Factor":0.81,"Voltage":226,"Current":0.459}}}

                        06e576ca-8dc9-44af-85cd-0c45e0a28d1e-image.png

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

                          @ralfth

                          den langen kommentar hast du gelöscht ?
                          Telemetrie steht bei mir auf 10

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

                            @ralla66 Beides Ja, allerdings immer noch:

                            19:19:27.382 MQT: stat/tasmota_B8D3E7/RESULT = {"WebSend":"Connect failed"}

                            Ich verstehe das nicht, wenn ich das im Webbrowser aufrufe funktioniert es doch!!!!

                            Das ist allerdings neu:

                            19:21:50.738 var not found: WebQuery#StatusSNS#ENERGY#Voltage
                            19:21:50.740 Wert Volt 0.00
                            19:21:50.742 var not found: WebQuery#StatusSNS#ENERGY#Current/1000
                            19:21:50.743 Wert Current 0.00
                            19:21:50.745 var not found: WebQuery#StatusSNS#ENERGY#Power
                            19:21:50.746 Wert Power 0.00
                            19:21:50.748 var not found: WebQuery#StatusSNS#ENERGY#Total
                            19:21:50.750 Wert Total 0.00
                            19:21:50.751 var not found: WebQuery#StatusSNS#ENERGY#Yesterday
                            19:21:50.753 Wert Yesterday 0.00
                            19:21:50.755 var not found: WebQuery#StatusSNS#ENERGY#Today
                            19:21:50.756 Wert Today 0.00
                            19:21:50.758 var not found: WebQuery#StatusSNS#ENERGY#ApparentPower
                            19:21:50.759 Wert Apparent Power 0.00
                            19:21:50.761 var not found: WebQuery#StatusSNS#ENERGY#ReactivePower
                            19:21:50.763 Wert Reaktive Power 0.00
                            
                            Ralla66 1 Reply Last reply Reply Quote 0
                            • Ralla66
                              Ralla66 Most Active @RalfTh last edited by

                              @ralfth

                              Die folgenden defines sind nicht mehr Bestandteil my_user_config.h

                              #define USE_SCRIPT_GLOBVARS
                              #define USE_SCRIPT_STATUS
                              #define USE_SCRIPT_STATUS
                              #define USE_SCRIPT_FULL_JSON_PARSER

                              der Parser zerlegt die Antwort vom websend der Anfrage in Today, Voltage usw.
                              Der Parser wird zwingend benötigt.

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

                                @ralla66 OK, dann mach ich mich erst mal da dran un compiliere eine neue .bin

                                Melde mich dann wieder. Und vielen Dank für Deine Unterstützung.

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

                                  @ralla66 Dieses define steht in der my_user_config.h ??

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

                                    @ralfth

                                    und nimm bitte alle define USE_xxxxx
                                    Auf git liefen meine .bin auch nicht,erst die mit Tasmocompiler erstellten
                                    liefen dann. Probiers mal.

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

                                      @ralla66 Meinst du den GitPod oder ist der Tasmotacompiler noch was anderes. GitPod ist so ne Browsererweiterung auf Basis VSC

                                      @ralla66 sagte in Gosund SP111 mit Tasmota 13.2.0 Problem mit DP:

                                      #define USE_SCRIPT_GLOBVARS
                                      #define USE_SCRIPT_STATUS
                                      #define USE_SCRIPT_STATUS
                                      #define USE_SCRIPT_FULL_JSON_PARSER

                                      Hier ein Auszug aus der my_user_config.h nach der Suche nach dem Wort Script:

                                      // -- Rules or Script  ----------------------------
                                      // Select none or only one of the below defines USE_RULES or USE_SCRIPT
                                      #define USE_RULES                                // Add support for rules (+8k code)
                                      //  #define USE_EXPRESSION                         // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)
                                      //    #define SUPPORT_IF_STATEMENT                 // Add support for IF statement in rules (+4k2 code, -332 bytes mem)
                                      //  #define USER_RULE1 "<Any rule1 data>"          // Add rule1 data saved at initial firmware load or when command reset is executed
                                      //  #define USER_RULE2 "<Any rule2 data>"          // Add rule2 data saved at initial firmware load or when command reset is executed
                                      //  #define USER_RULE3 "<Any rule3 data>"          // Add rule3 data saved at initial firmware load or when command reset is executed
                                      
                                      //#define USE_SCRIPT                               // Add support for script (+17k code)
                                      //  #define USE_SCRIPT_FATFS 4                     // Script: Add FAT FileSystem Support
                                      //  #define SUPPORT_MQTT_EVENT                     // Support trigger event with MQTT subscriptions (+3k5 code)
                                      

                                      Und weiter unten:

                                      #if defined(USE_RULES) && defined(USE_SCRIPT)
                                        #error "Select either USE_RULES or USE_SCRIPT. They can't both be used at the same time"
                                      #endif
                                      

                                      Diese Defines stehen nicht in der aktuellen my_user_config.h . Soll ich die einfach mal in die user_config-override.h eintragen??

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

                                        @ralfth

                                        keine Ahnung von my_user_config.h

                                        die:

                                        #define USE_TIMERS
                                        #define USE_SCRIPT
                                        #define USE_SCRIPT_GLOBVARS
                                        #define USE_SCRIPT_STATUS
                                        #define USE_WEBSEND_RESPONSE
                                        #define USE_SCRIPT_STATUS
                                        #define USE_SCRIPT_FULL_JSON_PARSER
                                        #define USE_SCRIPT_JSON_EXPORT
                                        #define SUPPORT_MQTT_EVENT
                                        #define USE_SML_M
                                        #define USE_SCRIPT_WEB_DISPLAY
                                        #define USE_SCRIPT_SERIAL

                                        tasmoComp.jpg

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

                                          @ralla66 bin gerade völlig überfordert. wie komme ich denn an den Tasmocompiler??

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

                                            @ralfth

                                            Link

                                            tasmoComp install.jpg

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            485
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            88
                                            6005
                                            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