Dear all
I need your assistance. In a room without WLAN I installed a ESPHome based on a WT32-ETH01 board and there is a temp sensor DS18B20 connected. The one wire config:
one_wire:
- platform: gpio
pin: GPIO14
seems to work, in the logfile the sensor (incl. address) is listed. But as soon, as I define the sensor:
sensor:
- platform: dallas_temp
address: 0xc3030b9794195028
name: "Temperatur Whirlpool"
update_interval: 60s
a compilation error occours:
/data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: .pioenvs/esphome3/src/main.cpp.o:(.literal._Z5setupv+0xc8): undefined reference to `_ZTVN7esphome11dallas_temp23DallasTemperatureSensorE' /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: .pioenvs/esphome3/src/main.cpp.o:(.literal._Z5setupv+0xcc): undefined reference to `_ZTVN7esphome11dallas_temp23DallasTemperatureSensorE' collect2: error: ld returned 1 exit status *** [.pioenvs/esphome3/firmware.elf] Error 1
The config ot the ESPHome:
esphome:
name: "esphome3"
friendly_name: ESPHome 3
esp32:
board: esp32dev
framework:
type: arduino
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16
web_server:
port: 80
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: the key...
ota:
- platform: esphome
password: the password...
Whats wrong? Thanks for any feedback.I am feeling quite hopeless.
Best Regards
Chris