Apologies if this has been asked/answered before but the last hour of googling has not turned up any answers I can understand what to do.
I have just installed EspHome through the supervisor addon and am trying to compile my first Esphome to one of the new Sonoff NSPanels following the great video by @masto.
However, every time I try to compile this I am getting permission denied errors. Any help or guidance of how to solve this appreciated.
My environment (from Esphome container logs)
-----------------------------------------------------------
Add-on: ESPHome
ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices
-----------------------------------------------------------
Add-on version: 2022.1.2
You are running the latest version of this add-on.
System: Raspbian GNU/Linux 10 (buster) (armv7 / raspberrypi4)
Home Assistant Core: 2021.12.8
Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
The compile output
INFO Reading configuration /config/esphome/nspanel-demo.yaml...
WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing nspanel-demo (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.3.2)
--------------------------------------------------------------------------------
Platform Manager: Installing platformio/espressif32 @ 3.3.2
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: espressif32 @ 3.3.2 has been installed!
The platform 'platformio/espressif32 @ 3.3.2' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.50200.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-xtensa32 @ 2.50200.97 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.10006.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-arduinoespressif32 @ 3.10006.210326 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30100.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-esptoolpy @ 1.30100.210531 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40300.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: tool-scons @ 4.40300.1 has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <WiFi> 1.0
|-- <Update> 1.0
|-- <WiFiClientSecure> 1.0
|-- <HTTPClient> 1.2
|-- <ESPmDNS> 1.0
Compiling /data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/adc/adc_sensor.cpp.o
sh: 1: xtensa-esp32-elf-g++: Permission denied
Compiling /data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: Permission denied
Compiling /data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32-elf-g++: Permission denied
*** [/data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/adc/adc_sensor.cpp.o] Error 126
Compiling /data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_pb2.cpp.o
*** [/data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_connection.cpp.o] Error 126
*** [/data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_frame_helper.cpp.o] Error 126
sh: 1: xtensa-esp32-elf-g++: Permission denied
*** [/data/nspanel-demo/.pioenvs/nspanel-demo/src/esphome/components/api/api_pb2.cpp.o] Error 126
========================= [FAILED] Took 49.90 seconds =========================