mmakaay / esphome-xiaomi_bslamp2

ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.
Other
204 stars 49 forks source link

[BUG] upload error #81

Closed Inakhosz7 closed 2 years ago

Inakhosz7 commented 2 years ago

reloading an existing configuration fails

INFO Reading configuration /config/esphome/bedside-lamp-right.yaml...
INFO Updating https://github.com/mmakaay/esphome-xiaomi_bslamp2@dev
INFO Updating https://github.com/mmakaay/esphome-xiaomi_bslamp2@dev
WARNING GPIO12 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
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 bedside-lamp-right (board: esp32doit-devkit-v1; framework: espidf; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf 3.40302.0 (4.3.2) 
 - tool-cmake 3.16.4 
 - tool-ninja 1.7.1 
 - toolchain-riscv32-esp 8.4.0+2021r2-patch2 
 - toolchain-xtensa-esp32 8.4.0+2021r2-patch2 
 - toolchain-xtensa-esp32s2 8.4.0+2021r2-patch2
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
No dependencies
*** [/data/bedside-lamp-right/.pioenvs/bedside-lamp-right/src/esphome/components/api/util.o] Source `src/esphome/components/api/util.cpp' not found, needed by target `/data/bedside-lamp-right/.pioenvs/bedside-lamp-right/src/esphome/components/api/util.o'.
========================= [FAILED] Took 11.33 seconds =========================
mmakaay commented 2 years ago

Please, when posting log output, post it as a code blob. ``` use three backticks around the code like this to make it readable ```

I don't see the same errors and can generate and upload a new firmware without issues. Can you please specify your exact setup and versions of software that you are using?

Inakhosz7 commented 2 years ago

To compile and upload the firmware I am using the ESPHome application by Nabu Casa v2022.3.1.

mmakaay commented 2 years ago

You mean that you are using it from the ESPHome add-on in Home Assistant?

First of all, make sure that you are using the latest version of ESPHome. That is what I cuse to compile.

Also try to perform a clean build, to make sure that there are no stale files in the build directory.

mmakaay commented 2 years ago

Any progress on this issue, or can I close it?