Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Microcontroller
    5. Hilfe:Daten von Serieller Schnittstelle+Tasmota zu ioBroker

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Hilfe:Daten von Serieller Schnittstelle+Tasmota zu ioBroker

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

      @ralla66
      Ich denke schon dass es auch mit dem Sonoff Adapter irgendwie funktionieren sollte, weiß aber nicht wie :))

      Habe mal versucht die Variable %RAL% unter >J einzugeben, dann wird mir folgende Fehlermeldung angezeigt:

      2024-01-31 14:17:06.144	warn	Cannot parse data "SENSOR": _{"Time":"2024-01-31T14:17:05""gesamt": 18� 0% DAUER DES ABBRANDS 30' 18� 0% DAUER DES ABBRANDS 30' }_ - SyntaxError: Unexpected string in JSON at position 29
      

      Das Script scheint zu funktionieren, vielen Dank nochmal.
      Dann werde ich mal den MQTT Adapter Testen.

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

        @fritzke316

        zeige mal das Bild vom Blockly

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

          @ralla66
          Ich habe noch kein Blockly da ich erst mal versucht habe ob ich die Daten vom Script auch in den Sonoff Adapter kriege 🙂
          Was aber nicht funktioniert hat, also werde ich erstmal den MQTT Adapter installieren müssen.

          Aber noch eine Andere Frage ist das so richtig, dass in der Tasmota Konsole bei Text ist: der Text 2x hintereinander und etwas durcheinander aufgelistet ist sollte doch in etwa so aussehen: ABBRAND BEENDET ZULUFT ZU 18� 0%

          in der Konsole siehts bei mir so aus

          15:10:15.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:10:15.421 ---- SEND nach hterm ----
          15:10:15.424 RES ist : 1023
          15:10:15.427 Text ist :    18�        0ABBRAND BEENDET    ZULUFT ZU                      18�        0ABBRAND BEENDET    ZULUFT ZU            
          15:10:15.436 MQT: Ofen/Gesamt =    18�        0ABBRAND BEENDET    ZULUFT ZU                      18�        0ABBRAND BEENDET    ZULUFT ZU            
          15:10:25.411 SCR: performs "serialsend Routine läuft alle 10 sec"
          15:10:25.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:10:25.421 ---- SEND nach hterm ----
          15:10:25.423 RES ist : 1029
          15:10:25.427 Text ist :          18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN   
          15:10:25.433 MQT: Ofen/Gesamt =          18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN   
          15:10:35.412 SCR: performs "serialsend Routine läuft alle 10 sec"
          15:10:35.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:10:35.421 ---- SEND nach hterm ----
          15:10:35.424 RES ist : 1038
          15:10:35.427 Text ist :                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN O
          15:10:35.434 MQT: Ofen/Gesamt =                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN O
          15:10:45.412 SCR: performs "serialsend Routine läuft alle 10 sec"
          15:10:45.419 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:10:45.422 ---- SEND nach hterm ----
          15:10:45.424 RES ist : 1028
          15:10:45.428 Text ist :         18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     30'   
          15:10:45.436 MQT: Ofen/Gesamt =         18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     30'   
          15:10:55.411 SCR: performs "serialsend Routine läuft alle 10 sec"
          15:10:55.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:10:55.421 ---- SEND nach hterm ----
          15:10:55.424 RES ist : 1034
          15:10:55.427 Text ist :               18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN 
          15:10:55.432 MQT: Ofen/Gesamt =               18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN 
          15:11:05.412 SCR: performs "serialsend Routine läuft alle 10 sec"
          15:11:05.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
          15:11:05.421 ---- SEND nach hterm ----
          15:11:05.424 RES ist : 1027
          15:11:05.427 Text ist :        18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN        
          15:11:05.434 MQT: Ofen/Gesamt =        18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN    
          
          Ralla66 1 Reply Last reply Reply Quote 0
          • Ralla66
            Ralla66 Most Active @fritzke316 last edited by Ralla66

            @fritzke316

            nein ist nicht richtig, RES ist die Anzahl der Empfangenen Bytes bei dir um 1038.
            Sollte aber max RAL=sr(43) also 67 Byte lang sein.
            Copy Fehler im script ?
            Das wird wohl daran liegen das die Daten bei dir hintereinander ankommen.
            Kann ich ja bei mir nicht testen mit hterm.
            Mache mir mal Gedanken dazu.

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

              @ralla66
              Also soweit ich sehen kann sieht das script genau so aus wie bei dir auch RAL=sr(43) ist vorhanden.
              Ja bei mir siehts so aus als ob die Daten alle hintereinandergereiht ankommen.

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

                @fritzke316

                so auf die schnelle, müßte gehen wenn die Variablen gecleant werden.

                +>publish Ofen/Gesamt %RAL%
                res=0
                RAL=""
                endif

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

                  @ralla66

                  Habe res=0 und RAL="" am Ende vor endif eingetragen aber leider immer noch das selbe Ergebniss:

                  16:40:45.416 Text ist : HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�  
                  16:40:45.423 MQT: Ofen/Gesamt = HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�        0HEIZTUERE NUR Z.FUELLEN OEFFNEN                   18�  
                  16:40:55.412 SCR: performs "serialsend Routine läuft alle 10 sec"
                  16:40:55.418 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
                  16:40:55.419 ---- SEND nach hterm ----
                  16:40:55.422 RES ist : 1033
                  16:40:55.425 Text ist :              18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     3
                  16:40:55.430 MQT: Ofen/Gesamt =              18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     3
                  16:41:05.412 SCR: performs "serialsend Routine läuft alle 10 sec"
                  16:41:05.417 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
                  16:41:05.419 ---- SEND nach hterm ----
                  16:41:05.422 RES ist : 1023
                  16:41:05.425 Text ist :    18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     30'        
                  16:41:05.432 MQT: Ofen/Gesamt =    18�        0DAUER DES       ABBRANDS     30'                  18�        0DAUER DES       ABBRANDS     30'        
                  16:41:15.411 SCR: performs "serialsend Routine läuft alle 10 sec"
                  16:41:15.417 MQT: stat/tasmota_10A5EF/RESULT = {"SerialSend":"Done"}
                  16:41:15.419 ---- SEND nach hterm ----
                  16:41:15.422 RES ist : 1029
                  16:41:15.426 Text ist :          18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN      
                  16:41:15.431 MQT: Ofen/Gesamt =          18�        0  NACHLEGEZEIT      BEACHTEN                      18�        0  NACHLEGEZEIT      BEACHTEN 
                  
                  Ralla66 1 Reply Last reply Reply Quote 0
                  • Ralla66
                    Ralla66 Most Active @fritzke316 last edited by Ralla66

                    @fritzke316

                    das muß ich erst in hterm nachbilden und testen.
                    Getrennt werden muß ja zwischen 0 und Text dann 67 Byte lang.
                    Also ab 0211 bei SerialReceived

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

                      @ralla66
                      Ich kenne mich da zu wenig aus, aber wenn du was rausfindest bin ich sehr dankbar. Aber kein Stress eilt nicht 🙂

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

                        @fritzke316

                        das wird schon, bin auch nur Hobbybastler, weiß aber wen ich Fragen kann.
                        Dauert einen Moment, bekommen wir aber hin.
                        Ist ja nur noch -> if res>0 und 02 11 erscheint then ..... 🙂
                        Vielleicht hat ja ein Forumsuser hier noch Ideen.

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

                          @ralla66
                          hast du vielleicht in der Zwischenzeit noch was rausgefunden wie ich die Daten irgendwie sinvoll auslesen kann?
                          Ich habe etwas rumprobiert aber nicht hat funktioniert 😞

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          971
                          Online

                          31.7k
                          Users

                          79.7k
                          Topics

                          1.3m
                          Posts

                          3
                          23
                          1598
                          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