Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Microcontroller
    5. Tasmocompiler für D1-Mini mit SML + BME280 [gelöst]

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Tasmocompiler für D1-Mini mit SML + BME280 [gelöst]

    This topic has been deleted. Only users with topic management privileges can see it.
    • MartinSU
      MartinSU last edited by MartinSU

      Hallo,
      ich habe einen D1-Mini mit Stromzähler Interface am laufen.
      Die Software habe ich damals mit dem Tasmocompiler erstellt.
      Eingestellt haben ich bei Wähle die Funktionen die Funktionen Web Interface, Timers, Regeln
      und bei Zusätzliche Parameter :

      #ifndef USE_SML_M
      #define USE_SML_M
      #endif
      

      Jetzt wollte ich mit dem gleichen D1-Mini zusätzlich noch einen BME280 (Temperatur, Luftdruck und Feuchtigkeitssensor) per I2C Bus anschließen. Deshalb habe ich zusätzlich Temperatur/ Luftfeuchtigkeitssensoren aktiviert. Ergebnis:
      *** [.pio/build/tasmota/src/tasmota.ino.cpp.o] Error 1
      Im nächsten Versuch habe ich bei Zusätzliche Parameter folgendes eingefügt (die Auswahl oben deaktiviert)

      #ifndef USE_SML_M
      #define USE_SML_M
      #endif
      #ifndef USE_BMP
      #define USE_BMP 
      #endif
      #ifndef USE_I2C
      #define USE_I2C
      #endif
      

      Aber leider wieder der gleiche Fehler.
      *** [.pio/build/tasmota/src/tasmota.ino.cpp.o] Error 1
      Leider kann ich mir der Fehlermeldung nichts anfangen, habe auch nichts gefunden.
      Was muss ich einstellen, damit das zusammen klappt?
      Oder geht das nicht zusammen?
      Wer hat einen Tipp?
      Danke

      MartinSU 1 Reply Last reply Reply Quote 0
      • MartinSU
        MartinSU @MartinSU last edited by

        Ich habe noch ein paar Fehlermeldungen gefunden, wenn man etwas weiter in der Listbox hochscrollt.
        Vielleicht gibt es ein paar Insider....

        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1447:22: error: 'SML_Decode' was not declared in this scope
             SML_Decode(meters);
                              ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1485:28: error: 'SML_Decode' was not declared in this scope
                   SML_Decode(meters);
                                    ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1509:26: error: 'SML_Decode' was not declared in this scope
                 SML_Decode(meters);
                                  ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1539:28: error: 'SML_Decode' was not declared in this scope
                   SML_Decode(meters);
                                    ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1566:30: error: 'SML_Decode' was not declared in this scope
                     SML_Decode(meters);
                                      ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1584:28: error: 'SML_Decode' was not declared in this scope
                   SML_Decode(meters);
                                    ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1595:26: error: 'SML_Decode' was not declared in this scope
                 SML_Decode(meters);
                                  ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1604:26: error: 'SML_Decode' was not declared in this scope
                 SML_Decode(meters);
                                  ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1625:32: error: 'SML_Decode' was not declared in this scope
                       SML_Decode(meters);
                                        ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:1644:22: error: 'SML_Decode' was not declared in this scope
             SML_Decode(meters);
                              ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino: In function 'uint32_t SML_getlinelen(char*)':
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:2800:20: error: 'SCRIPT_EOL' was not declared in this scope
             if (lp[cnt] == SCRIPT_EOL) {
                            ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino: In function 'void SML_Init()':
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:3079:14: error: 'glob_script_mem' was not declared in this scope
           char *lp = glob_script_mem.section_ptr;
                      ^
        Compiling .pio/build/tasmota/lib388/ESP8266SdFat/FatLib/ostream.cpp.o
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:3253:34: error: 'SCRIPT_EOL' was not declared in this scope
                     if (!*lp1 || *lp1 == SCRIPT_EOL || *lp1 == ',') {
                                          ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:3311:39: error: 'SCRIPT_EOL' was not declared in this scope
                         if (!*lp1 || (*lp1 == SCRIPT_EOL)) {
                                               ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:3345:23: error: 'SCRIPT_EOL' was not declared in this scope
                   if (*lp1 == SCRIPT_EOL) lp1--;
                               ^
        /tmp/Tasmota/tasmota/tasmota_xsns_sensor/xsns_53_sml.ino:3391:18: error: 'SCRIPT_EOL' was not declared in this scope
               if (*lp == SCRIPT_EOL) {
                          ^
        
        bahnuhr 1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @MartinSU last edited by bahnuhr

          @martinsu
          für den BME280 benutze ich:

          #undef USE_BMP 
          #define USE_BMP                                  // [I2cDriver10] Enable BMP085/BMP180/BMP280/BME280 sensors (I2C addresses 0x76 and 0x77) (+4k4 code)
          

          Was dein ifndev ist, weiß ich nicht.

          Ich bastel mir die bin so wie ich sie brauche.
          Und flashen tue ich mit tasmotizer.

          MartinSU 1 Reply Last reply Reply Quote 0
          • MartinSU
            MartinSU @bahnuhr last edited by

            @bahnuhr
            Ich habe es jetzt auch hinbekommen.
            Der Fehler war, dass man bei Wähle die Funktionen nicht Regeln sondern Script (für SML) aktiviert sein muss.
            Zusätzlich noch Temperatur/ Luftfeuchtigkeitssensoren für den BME280 aktivieren,
            dann kam die Meldung: Finished. Exit code: 0.
            Morgen noch löten und flashen um zu sehen, ob auch alles funktioniert.
            Danke Dir.

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

            Support us

            ioBroker
            Community Adapters
            Donate

            839
            Online

            31.7k
            Users

            79.7k
            Topics

            1.3m
            Posts

            2
            4
            346
            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