Framework arduino based component throws compile error with up2date esphome version

Hi everybody,

I flashed my ESPHome device from the Home Assistant ESP Home UI with "New Device" / Continue / New Device setup.

Before starting the flashing process, I edited the configuration file and changed the esp32 framework to arduino. Then I flashed. Still, during the process I get in the logs Processing water-meter-esp (board: esp32-s2-saola-1; framework: arduino, espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38-1/platform-espressif32.zip) (note the framework: arduino and espidf).

With this, I was not able to install the configuration from GitHub - zibous/ha-watermeter: Data provider for smartmeter watermeter, I got a compiler error In file included from src/esphome/components/wmbus/wmbus.cpp:1: src/esphome/components/wmbus/wmbus.h:17:10: fatal error: WiFiClient.h: No such file or directory, details see Version 3: fatal error: WiFiClient.h: No such file or directory · Issue #383 · SzczepanLeon/esphome-components · GitHub.

The ha-watermeter repo used the esphome version 2025.9.3, so I used that as well, and restarted the flashing as described above. With this, I got in the logs Processing water-meter-esp (board: esp32-s2-saola-1; framework: arduino; platform: ... (note that there was no framework espidf anymore), the compile error is gone, and everything worked.

I would like to use an up2date version of ESPHome. Can I solve that by flashing my device in a different way with framework Arduino only? Or is it necessary to update the wmbus repo in some way (Not to support espidf, but in a different way) ?

The project your a trying to load is 3 years old. There will no doubt be a lot of changes since it was written. Especially with esp idf.

Read this it may help.

OK, thx, I will try to use espidf framework. The important repo seems to already support this.