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. ioBroker Allgemein
  4. EspHome: fatal error: ESPAsyncWebServer.h

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

EspHome: fatal error: ESPAsyncWebServer.h

Scheduled Pinned Locked Moved ioBroker Allgemein
31 Posts 6 Posters 2.2k Views 5 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.
  • Thomas BraunT Thomas Braun

    @marsmännchen sagte in EspHome: fatal error: ESPAsyncWebServer.h:

    Nachdem ich es geschafft habe von NPM die aktuellste Version zu installieren

    Wie genau? Npm selber packt man nicht an, das kommt per nodejs daher.

    M Offline
    M Offline
    marsmännchen
    wrote on last edited by
    #21

    @thomas-braun

    iobroker url DrozmotiX/ioBroker.esphome --host meinhost
    

    und dann:

    iobroker add esphome --host meinhost
    

    Hat soweit geklappt, das ich den Adapter im Admin sehe, eine Instanz sehe welche grün ist, und ich das Dashboard benutzen kann.
    Aber eben den Fehler bekomme beim verbinden mit einem Olimex-ESP:

    INFO Reading configuration /opt/iobroker/iobroker-data/esphome.0/olim1.yaml...
    INFO Generating C++ source...
    INFO Compiling app...
    Processing olim1 (board: esp32-poe-iso; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
    --------------------------------------------------------------------------------
    HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
    Warning! Please upgrade to the PlatformIO Core 6
    Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
    Warning! Please upgrade to the PlatformIO Core 6
    Dependency Graph
    |-- <WiFi> 1.0
    |-- <FS> 1.0
    |-- <Update> 1.0
    |-- <DNSServer> 1.1.0
    |-- <ESPmDNS> 1.0
    Compiling .pioenvs/olim1/src/esphome/components/captive_portal/captive_portal.cpp.o
    Compiling .pioenvs/olim1/src/esphome/components/esp32/gpio_idf.cpp.o
    Compiling .pioenvs/olim1/src/esphome/components/esp32/preferences.cpp.o
    Compiling .pioenvs/olim1/src/esphome/components/logger/logger.cpp.o
    Compiling .pioenvs/olim1/src/esphome/components/md5/md5.cpp.o
    In file included from src/esphome/components/captive_portal/captive_portal.h:10:0,
                     from src/esphome/components/captive_portal/captive_portal.cpp:3:
    src/esphome/components/web_server_base/web_server_base.h:9:31: fatal error: ESPAsyncWebServer.h: No such file or directory
    
    ***************************************************************************
    * Looking for ESPAsyncWebServer.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:ESPAsyncWebServer.h"
    * Web  > https://registry.platformio.org/search?q=header:ESPAsyncWebServer.h
    *
    ***************************************************************************
    
    compilation terminated.
    *** [.pioenvs/olim1/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
    ========================== [FAILED] Took 7.04 seconds ==========================
    

    Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
    Wago PFC200 mit Dali Lichtsteuerung.

    Thomas BraunT 1 Reply Last reply
    0
    • M marsmännchen

      @thomas-braun

      iobroker url DrozmotiX/ioBroker.esphome --host meinhost
      

      und dann:

      iobroker add esphome --host meinhost
      

      Hat soweit geklappt, das ich den Adapter im Admin sehe, eine Instanz sehe welche grün ist, und ich das Dashboard benutzen kann.
      Aber eben den Fehler bekomme beim verbinden mit einem Olimex-ESP:

      INFO Reading configuration /opt/iobroker/iobroker-data/esphome.0/olim1.yaml...
      INFO Generating C++ source...
      INFO Compiling app...
      Processing olim1 (board: esp32-poe-iso; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
      --------------------------------------------------------------------------------
      HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
      LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
      Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
      Warning! Please upgrade to the PlatformIO Core 6
      Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
      Warning! Please upgrade to the PlatformIO Core 6
      Dependency Graph
      |-- <WiFi> 1.0
      |-- <FS> 1.0
      |-- <Update> 1.0
      |-- <DNSServer> 1.1.0
      |-- <ESPmDNS> 1.0
      Compiling .pioenvs/olim1/src/esphome/components/captive_portal/captive_portal.cpp.o
      Compiling .pioenvs/olim1/src/esphome/components/esp32/gpio_idf.cpp.o
      Compiling .pioenvs/olim1/src/esphome/components/esp32/preferences.cpp.o
      Compiling .pioenvs/olim1/src/esphome/components/logger/logger.cpp.o
      Compiling .pioenvs/olim1/src/esphome/components/md5/md5.cpp.o
      In file included from src/esphome/components/captive_portal/captive_portal.h:10:0,
                       from src/esphome/components/captive_portal/captive_portal.cpp:3:
      src/esphome/components/web_server_base/web_server_base.h:9:31: fatal error: ESPAsyncWebServer.h: No such file or directory
      
      ***************************************************************************
      * Looking for ESPAsyncWebServer.h dependency? Check our library registry!
      *
      * CLI  > platformio lib search "header:ESPAsyncWebServer.h"
      * Web  > https://registry.platformio.org/search?q=header:ESPAsyncWebServer.h
      *
      ***************************************************************************
      
      compilation terminated.
      *** [.pioenvs/olim1/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
      ========================== [FAILED] Took 7.04 seconds ==========================
      
      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      wrote on last edited by
      #22

      @marsmännchen

      Sorry, hatte dich missverstanden.

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      M 1 Reply Last reply
      0
      • Thomas BraunT Thomas Braun

        @marsmännchen

        Sorry, hatte dich missverstanden.

        M Offline
        M Offline
        marsmännchen
        wrote on last edited by
        #23

        @thomas-braun
        kein Problem.
        Ich glaub das ist wohl eher so eine Github issue sache.
        Egal mit welchem Bauteil/Modul (ESP32,...) man arbeiten will fehlt immer die oben genannte Headerdatei.

        Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
        Wago PFC200 mit Dali Lichtsteuerung.

        Thomas BraunT 1 Reply Last reply
        0
        • M marsmännchen

          @thomas-braun
          kein Problem.
          Ich glaub das ist wohl eher so eine Github issue sache.
          Egal mit welchem Bauteil/Modul (ESP32,...) man arbeiten will fehlt immer die oben genannte Headerdatei.

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          wrote on last edited by
          #24

          @marsmännchen

          https://community.platformio.org/t/including-libs-file-not-found/29943

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          M 1 Reply Last reply
          1
          • Thomas BraunT Thomas Braun

            @marsmännchen

            https://community.platformio.org/t/including-libs-file-not-found/29943

            M Offline
            M Offline
            marsmännchen
            wrote on last edited by
            #25

            @thomas-braun
            okay, danke...
            lib_deps eintragen...
            Bin gespannt

            Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
            Wago PFC200 mit Dali Lichtsteuerung.

            M 1 Reply Last reply
            0
            • M marsmännchen

              @thomas-braun
              okay, danke...
              lib_deps eintragen...
              Bin gespannt

              M Offline
              M Offline
              marsmännchen
              wrote on last edited by
              #26

              @Thomas-Braun

              Vielleicht noch eine letzte idee wo ich das einfügen muss?

              esphome:
                name: olim1
              
              esp32:
              
                board: esp32-poe-iso
                
                framework:
                
                  type: arduino
                  lib_deps:
                    ayushsharma82/AsyncElegantOTA@^2.2.7
                    ottowinter/ESPAsyncWebServer-esphome@^3.0.0
                    links2004/WebSockets@^2.3.7 
                  
                     
              
              
              # Enable logging
              logger:
              
              # Enable Home Assistant API
              api:
              
              ota:
                password: "b93b5acd7b0bb6f4306931842f157caa"
              

              Da kommt dann immer:

              Failed config
              
              esp32: None
                board: esp32-poe-iso
                framework:  None
                  type: arduino
                  
                  [lib_deps] is an invalid option for [framework]. Please check the indentation.
                  lib_deps: |-
                    ayushsharma82/AsyncElegantOTA@^2.2.7 ottowinter/ESPAsyncWebServer-esphome@^3.0.0 links2004/WebSockets@^2.3.7 None
              

              Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
              Wago PFC200 mit Dali Lichtsteuerung.

              Thomas BraunT 1 Reply Last reply
              0
              • M marsmännchen

                @Thomas-Braun

                Vielleicht noch eine letzte idee wo ich das einfügen muss?

                esphome:
                  name: olim1
                
                esp32:
                
                  board: esp32-poe-iso
                  
                  framework:
                  
                    type: arduino
                    lib_deps:
                      ayushsharma82/AsyncElegantOTA@^2.2.7
                      ottowinter/ESPAsyncWebServer-esphome@^3.0.0
                      links2004/WebSockets@^2.3.7 
                    
                       
                
                
                # Enable logging
                logger:
                
                # Enable Home Assistant API
                api:
                
                ota:
                  password: "b93b5acd7b0bb6f4306931842f157caa"
                

                Da kommt dann immer:

                Failed config
                
                esp32: None
                  board: esp32-poe-iso
                  framework:  None
                    type: arduino
                    
                    [lib_deps] is an invalid option for [framework]. Please check the indentation.
                    lib_deps: |-
                      ayushsharma82/AsyncElegantOTA@^2.2.7 ottowinter/ESPAsyncWebServer-esphome@^3.0.0 links2004/WebSockets@^2.3.7 None
                
                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                wrote on last edited by
                #27

                @marsmännchen

                Nein, keine Ahnung. Hab ich mich noch nie mit beschäftigt.

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                M 1 Reply Last reply
                0
                • Thomas BraunT Thomas Braun

                  @marsmännchen

                  Nein, keine Ahnung. Hab ich mich noch nie mit beschäftigt.

                  M Offline
                  M Offline
                  marsmännchen
                  wrote on last edited by
                  #28

                  Sollte noch jemand anderer daran arbeiten:
                  die einzige Möglichkeit die ich rausgefunden habe das er nicht über den Syntax meckert ist über die "platformio_options"
                  Was er jedoch beim kompilieren gekonnt ignoriert (und der ursprüngliche Fehler bleibt)

                  esphome:
                    platformio_options:
                      lib_deps: ayushsharma82/AsyncElegantOTA@^2.2.7
                                ottowinter/ESPAsyncWebServer-esphome@^3.0.0
                                links2004/WebSockets@^2.3.7   
                    name: olim3
                    
                  esp32:
                    
                    board: esp32-poe-iso
                    framework:
                      type: arduino
                  
                  # Enable logging
                  logger:
                  
                  # Enable Home Assistant API
                  api:
                  
                  ota:
                  

                  Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
                  Wago PFC200 mit Dali Lichtsteuerung.

                  M 1 Reply Last reply
                  0
                  • M marsmännchen

                    Sollte noch jemand anderer daran arbeiten:
                    die einzige Möglichkeit die ich rausgefunden habe das er nicht über den Syntax meckert ist über die "platformio_options"
                    Was er jedoch beim kompilieren gekonnt ignoriert (und der ursprüngliche Fehler bleibt)

                    esphome:
                      platformio_options:
                        lib_deps: ayushsharma82/AsyncElegantOTA@^2.2.7
                                  ottowinter/ESPAsyncWebServer-esphome@^3.0.0
                                  links2004/WebSockets@^2.3.7   
                      name: olim3
                      
                    esp32:
                      
                      board: esp32-poe-iso
                      framework:
                        type: arduino
                    
                    # Enable logging
                    logger:
                    
                    # Enable Home Assistant API
                    api:
                    
                    ota:
                    
                    M Online
                    M Online
                    mrjeschke
                    wrote on last edited by
                    #29

                    @marsmännchen
                    Sollten die Einträge nicht in die platform.io?

                    /opt/iobroker/iobroker-data/esphome.0/.esphome/build/test/platformio.ini
                    
                    M 1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      marsmännchen
                      wrote on last edited by
                      #30

                      Also ich kann folgenden Erfolg verbuchen:

                      Da ich nämlich ein Olimex esp32-POE benutzen will brauche ich auch eine andere Yaml welche natürlich die LAN Parameter übergibt.
                      Und die WiFi Parameter habe ich entfernt.
                      Sieht bei mir dann so aus:

                      esphome:
                        name: olim1
                      
                      esp32:
                        board: esp32-poe-iso
                        framework:
                          type: arduino
                      ethernet:
                        type: LAN8720
                        mdc_pin: GPIO23
                        mdio_pin: GPIO18
                        clk_mode: GPIO17_OUT
                        phy_addr: 0
                        power_pin: GPIO12
                      
                        # Optional manual IP
                        manual_ip:
                          static_ip: 123.123.1.2
                          gateway: 123.123.1.2
                          subnet: 255.255.255.0
                      # Enable logging
                      logger:
                      
                      # Enable Home Assistant API
                      api:
                      
                      

                      Ob sich ein ESP32 mit WiFi einrichten lässt kann ich natürlich noch nicht sagen.
                      MfG
                      Patrick

                      Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
                      Wago PFC200 mit Dali Lichtsteuerung.

                      1 Reply Last reply
                      0
                      • M mrjeschke

                        @marsmännchen
                        Sollten die Einträge nicht in die platform.io?

                        /opt/iobroker/iobroker-data/esphome.0/.esphome/build/test/platformio.ini
                        
                        M Offline
                        M Offline
                        marsmännchen
                        wrote on last edited by
                        #31

                        @mrjeschke
                        Ohh auch interessant!
                        Ja das kenn ich noch nicht.
                        Werd ich mir auch später ansehen.
                        Tochter schreit schon nach Aufmerksamkeit.:sob:

                        Raspberry Pi 4 8GB, Debian 11, js-controller: 5.0.12, Nodejs: v18.18.2, NPM: 9.8.1 (Multihost),
                        Wago PFC200 mit Dali Lichtsteuerung.

                        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
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        794

                        Online

                        32.5k

                        Users

                        81.7k

                        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