I have several projects that use the BME 680 with BSEC2, which have worked fine for over a year.
Having recently updated my ESPHome to 2026.2.1, I find these projects no longer compile, (they were fine with 2026.1.5).
I won’t spam you with the whole configuration because until this update they had no issues.
Has anyone else faced a similar problem?
I just performed a Clean All Files then an Install - Wirelessly
This error occurs:
In file included from src/esphome/components/bme68x_bsec2/bme68x_bsec2.h:20,
from src/esphome/components/bme68x_bsec2/bme68x_bsec2.cpp:7:
.piolibdeps/esp32-d1-mini-03/BSEC2 Software Library/src/bsec2.h:45:10: fatal error: Wire.h: No such file or directory
********************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:Wire.h"
* Web > https://registry.platformio.org/search?q=header:%1B%5Bm%1B%5BKWire.h
*
********************************************************************
45 | #include "Wire.h"
| ^~~~~~~~
compilation terminated.
*** [.pioenvs/esp32-d1-mini-03/src/esphome/components/bme68x_bsec2/bme68x_bsec2.cpp.o] Error 1
In file included from src/esphome/components/bme68x_bsec2/bme68x_bsec2.h:20,
from src/esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.h:9,
from src/esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.cpp:7:
.piolibdeps/esp32-d1-mini-03/BSEC2 Software Library/src/bsec2.h:45:10: fatal error: Wire.h: No such file or directory
********************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:Wire.h"
* Web > https://registry.platformio.org/search?q=header:%1B%5Bm%1B%5BKWire.h
*
********************************************************************
45 | #include "Wire.h"
| ^~~~~~~~
compilation terminated.
*** [.pioenvs/esp32-d1-mini-03/src/esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.cpp.o] Error 1
========================= [FAILED] Took 159.56 seconds =========================