Closed ryssel closed 1 year ago
Hi @ryssel , please share some info on your build environment: esphome/platformio/python versions? Also, which command are you using to build?
Hi, I can report the same (full log below).
I am doing this on an ESP32 already set up in ESPHome, so over wifi via the Home Assistant ESPHome integration. I'm running Home Assistant OS (v8.5) as a VM with Home Assistant Core 2022.9.1.
The ESPHome was already running to monitor Airthings Wave BLE devices, where it has worked fine for a while.
I got though the discovery "phase" to obtain the MAC just fine, no problems with build on that part.
Hi @Aephir , sorry for a delayed reply. I see you are missing a library definition in your YAML file, here is how you fix it:
esphome:
name: esp32-ble-proxy-1
libraries:
- xxtea-iot-crypt@2.0.1
# the rest of the file is unchanged
Hope it helps!
That seems to have done the trick, thanks a lot!
I am having the same problem.
The package is installed:
$ pio pkg search "header:xxtea-lib.h" Found 1 packages (page 1 of 1)
boseji/xxtea-iot-crypt Library • 2.0.1 • Published on Thu May 13 04:04:51 2021 XXTEA Cryptography Library for use in IoT gadgets. Helps to encrypt and decrypt data using shor and simple XXTEA algorithm
yaml file
esphome:
name: etrv2ha
libraries:
- xxtea-iot-crypt@2.0.1
name_add_mac_suffix: true
external_components:
- source: github://dmitry-cherkas/esphome-danfoss-eco@v1.1.4
Error:
Compiling .pioenvs/etrv2ha/src/esphome/components/danfoss_eco/properties.o
In file included from src/esphome/components/danfoss_eco/helpers.h:3,
from src/esphome/components/danfoss_eco/helpers.cpp:4:
src/esphome/components/danfoss_eco/xxtea.h:3:10: fatal error: xxtea-lib.h: No such file or directory
*******************************************************************
* Looking for xxtea-lib.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:xxtea-lib.h"
* Web > https://registry.platformio.org/search?q=header:xxtea-lib.h
*
*******************************************************************
#include <xxtea-lib.h>
^~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/etrv2ha/src/esphome/components/danfoss_eco/helpers.o] Error 1
In file included from src/esphome/components/danfoss_eco/helpers.h:3,
from src/esphome/components/danfoss_eco/device.h:8,
from src/esphome/components/danfoss_eco/device.cpp:1:
src/esphome/components/danfoss_eco/xxtea.h:3:10: fatal error: xxtea-lib.h: No such file or directory
*******************************************************************
* Looking for xxtea-lib.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:xxtea-lib.h"
* Web > https://registry.platformio.org/search?q=header:xxtea-lib.h
*
*******************************************************************
#include <xxtea-lib.h>
^~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/etrv2ha/src/esphome/components/danfoss_eco/device.o] Error 1
In file included from src/esphome/components/danfoss_eco/helpers.h:3,
from src/esphome/components/danfoss_eco/my_component.h:8,
from src/esphome/components/danfoss_eco/properties.h:6,
from src/esphome/components/danfoss_eco/properties.cpp:4:
src/esphome/components/danfoss_eco/xxtea.h:3:10: fatal error: xxtea-lib.h: No such file or directory
*******************************************************************
* Looking for xxtea-lib.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:xxtea-lib.h"
* Web > https://registry.platformio.org/search?q=header:xxtea-lib.h
*
*******************************************************************
#include <xxtea-lib.h>
^~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/etrv2ha/src/esphome/components/danfoss_eco/properties.o] Error 1
For me it looks like there is an include problem, but I do not know how to fix this.
@casperghst42 Can you try using the arduino framework:
esp32:
board: esp32dev
framework:
type: arduino
version: recommended
@ckoca that fixed it - thank you very much.
I cant install. I get this error: Compiling /data/wemos-esp32/.pioenvs/wemos-esp32/src/esphome/components/danfoss_eco/device.cpp.o Compiling /data/wemos-esp32/.pioenvs/wemos-esp32/src/esphome/components/danfoss_eco/helpers.cpp.o Compiling /data/wemos-esp32/.pioenvs/wemos-esp32/src/esphome/components/danfoss_eco/properties.cpp.o Compiling /data/wemos-esp32/.pioenvs/wemos-esp32/src/esphome/components/danfoss_eco/xxtea.cpp.o In file included from src/esphome/components/danfoss_eco/xxtea.cpp:1:0: src/esphome/components/danfoss_eco/xxtea.h:3:23: fatal error: xxtea-lib.h: No such file or directory
compilation terminated. *** [/data/wemos-esp32/.pioenvs/wemos-esp32/src/esphome/components/danfoss_eco/xxtea.cpp.o] Error 1 In file included from src/esphome/components/danfoss_eco/helpers.h:3:0, from src/esphome/components/danfoss_eco/helpers.cpp:4: src/esphome/components/danfoss_eco/xxtea.h:3:23: fatal error: xxtea-lib.h: No such file or directory