I am trying to install esphome on my device through add on.
My yaml file was generated automatically
esphome:
name: esp1
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "<key>"
ota:
password: "<pwd>"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp1 Fallback Hotspot"
password: "<pwd>"
captive_portal:
Here’s the error I’m getting:
warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.
Missing SConscript '/data/cache/platformio/packages/framework-arduinoespressif32/tools/platformio-build.py'
File "/data/cache/platformio/platforms/espressif32/builder/frameworks/arduino.py", line 41, in <module>
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Library Manager: Installing FS
Warning! Could not find the package with 'FS' requirements for your system 'linux_aarch64'
Library Manager: Installing Update
Warning! Could not find the package with 'Update' requirements for your system 'linux_aarch64'
Library Manager: Installing ESPmDNS
Warning! Could not find the package with 'ESPmDNS' requirements for your system 'linux_aarch64'
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 1.2.7
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 1.1.0
|-- noise-c @ 0.1.4
| |-- libsodium @ 1.10018.1
Compiling /data/esp1/.pioenvs/esp1/src/esphome/components/api/api_connection.cpp.o
Compiling /data/esp1/.pioenvs/esp1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/esp1/.pioenvs/esp1/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/esp1/.pioenvs/esp1/src/esphome/components/api/api_pb2_service.cpp.o
In file included from /data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/cstdint:35:0,
from src/esphome/components/api/api_frame_helper.h:2,
from src/esphome/components/api/api_frame_helper.cpp:1:
/data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/cstdint:35:0,
from src/esphome/components/api/api_frame_helper.h:2,
from src/esphome/components/api/api_connection.h:3,
from src/esphome/components/api/api_connection.cpp:1:
/data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from src/esphome/components/socket/socket.h:5:0,
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:116:23: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
*** [/data/esp1/.pioenvs/esp1/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
In file included from src/esphome/components/socket/socket.h:5:0,
from src/esphome/components/api/api_frame_helper.h:13,
from src/esphome/components/api/api_connection.h:3,
from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/socket/headers.h:116:23: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
*** [/data/esp1/.pioenvs/esp1/src/esphome/components/api/api_connection.cpp.o] Error 1
In file included from src/esphome/components/api/proto.h:4:0,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_pb2.cpp:3:
src/esphome/core/log.h:14:21: fatal error: esp_err.h: No such file or directory
*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:esp_err.h"
* Web > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************
In file included from src/esphome/components/api/proto.h:4:0,
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:14:21: fatal error: esp_err.h: No such file or directory
*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:esp_err.h"
* Web > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************
compilation terminated.
compilation terminated.
*** [/data/esp1/.pioenvs/esp1/src/esphome/components/api/api_pb2.cpp.o] Error 1
*** [/data/esp1/.pioenvs/esp1/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
========================== [FAILED] Took 8.57 seconds ==========================