New to ESPHome, unable to install devices/ configure them properly

installed esphome addon, added a new device which is a sensor, NodeMCU/ Wemos D1 Mini v2, exactly the one here - Nettigo: Wemos D1 mini V2 WiFi module

Tried all sorts of combinations but the installation always fails.

Even if i try to manually install using the flasher, even the download fails.

Log attached.

Processing: logs_pir-sensor-1_upload.txt…

INFO Reading configuration /config/esphome/pir-sensor-1.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting /data/pir-sensor-1/.pioenvs
INFO Deleting /data/pir-sensor-1/.piolibdeps
INFO Compiling app...
Processing pir-sensor-1 (board: esp01_1m; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Library Manager: Installing DNSServer

Unpacking  [------------------------------------]    0%
Unpacking  [###---------------------------------]    8%
Unpacking  [######------------------------------]   16%
Unpacking  [#########---------------------------]   25%
Unpacking  [############------------------------]   33%
Unpacking  [###############---------------------]   41%
Unpacking  [##################------------------]   50%
Unpacking  [#####################---------------]   58%
Unpacking  [########################------------]   66%
Unpacking  [###########################---------]   75%
Unpacking  [##############################------]   83%
Unpacking  [#################################---]   91%
Unpacking  [####################################]  100%
Library Manager: DNSServer @ 1.1.0 has been installed!
Library Manager: Installing ESP8266WiFi
Warning! Could not find the package with 'ESP8266WiFi' requirements for your system 'linux_armv7l'
Library Manager: Installing ESP8266mDNS
Warning! Could not find the package with 'ESP8266mDNS' requirements for your system 'linux_armv7l'
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
|-- <ESPAsyncWebServer-esphome> 2.1.0
|   |-- <ESPAsyncTCP-esphome> 1.2.3
|-- <DNSServer> 1.1.0
Compiling /data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_connection.cpp.o
Compiling /data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_pb2_service.cpp.o
In file included from src/esphome/components/socket/socket.h:5,
                 from src/esphome/components/api/api_frame_helper.h:13,
                 from src/esphome/components/api/api_frame_helper.cpp:1:
src/esphome/components/socket/headers.h:10:10: fatal error: lwip/inet.h: No such file or directory
   10 | #include "lwip/inet.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
*** [/data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
In file included from src/esphome/core/application.h:8,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome/components/api/api_connection.cpp:1:
src/esphome/core/hal.h:22:10: fatal error: c_types.h: No such file or directory

*****************************************************************
* Looking for c_types.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:c_types.h"
* Web  > https://registry.platformio.org/search?q=header:c_types.h
*
*****************************************************************

   22 | #include <c_types.h>
      |          ^~~~~~~~~~~
compilation terminated.
*** [/data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2.cpp:3:
src/esphome/core/log.h:8:10: fatal error: WString.h: No such file or directory

*****************************************************************
* Looking for WString.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WString.h"
* Web  > https://registry.platformio.org/search?q=header:WString.h
*
*****************************************************************

    8 | #include "WString.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from src/esphome/components/api/proto.h:4,
                 from src/esphome/components/api/api_pb2.h:5,
                 from src/esphome/components/api/api_pb2_service.h:5,
                 from src/esphome/components/api/api_pb2_service.cpp:3:
src/esphome/core/log.h:8:10: fatal error: WString.h: No such file or directory

*****************************************************************
* Looking for WString.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WString.h"
* Web  > https://registry.platformio.org/search?q=header:WString.h
*
*****************************************************************

    8 | #include "WString.h"
      |          ^~~~~~~~~~~
*** [/data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_pb2.cpp.o] Error 1
compilation terminated.
*** [/data/pir-sensor-1/.pioenvs/pir-sensor-1/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
========================== [FAILED] Took 4.80 seconds ==========================

1 Like

I am confused. What are you installing?

Never mind the above. I was installing a device, a pir sensor inside ESPHome and it would not install as above. i removed and reinstalled ESPHome and these errors disappeared.

However, now the installation process pauses for 4-5 minutes at

Using noise encryption: NO

and then after that permanently halts at

Boot seems successful, resetting boot loop counter

there is no success message.

However a device is created. But no entity.

My sensor is confusingly called Wemos D1 Mini v2 but images online look like its a Nodemcu device.

Please post your yaml file and the current log files and a photo of your setup. Did you add the device as an integration in HA?

EDIT:

Never mind, solved it. My yaml wasnt proper. All is good now! Thanks for the help everyone.

Other people with similar problems will read this in the future and ask: “Well, how did you fix it?”

2 Likes

my yaml was incorrect. i corrected the yaml and added the correct info.

I’m having the same issue, what was incorrect in the yaml?