ESPHOME soucis d'installe sur ATOM Lite

Mon problème

Bonjour a tous,
J’avais flasher mon ATOM Lite avec ESPHOME BLE Proxie de mon pc. J’ai voulu modifier l’atom lite, j’ai installer l’addon ESPHOME et j’ai ajouter l’atome lite.
Je vois bien l’atome lite et peu editer le YAML. Je voudrais ajouter des sensors et un swith , j’ai éditer mon yaml et ajouter ces lignes :

substitutions:
  name: atom-bluetooth-proxy-ad7a6c
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/m5stack-atom-lite.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
api:
  encryption:
    key: in4/0FfpPMdp8sPDbjj5aChezJ8BLAmGQpRlq6e2u1k=


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

sensor:
  - platform: wifi_signal
    name: "WiFi Signal"
    update_interval: 2min       
  - platform: uptime
    name: "Uptime"

switch:
  - platform: restart
    name: "BLE Proxy Restart"

J’ai bien vérifier et le YAML est valider. Je lance l’installation et ca plante a la fin.

INFO Reading configuration /config/esphome/atom-bluetooth-proxy-ad7a6c.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing atom-bluetooth-proxy-ad7a6c (board: m5stack-atom; framework: espidf; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.40402.0 (4.4.2) 
 - tool-cmake @ 3.16.9 
 - tool-ninja @ 1.10.2 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
|-- Improv @ 1.2.3
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_frame_helper.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_pb2.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_pb2_service.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_server.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/list_entities.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/proto.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/subscribe_state.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/user_services.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/bluetooth_proxy/bluetooth_connection.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/bluetooth_proxy/bluetooth_proxy.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/button/button.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32/gpio.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32/preferences.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble/ble.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble/ble_advertising.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble/ble_uuid.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble_client/ble_characteristic.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble_client/ble_client_base.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble_client/ble_service.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/improv_base/improv_base.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/improv_serial/improv_serial_component.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/logger/logger.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/md5/md5.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/mdns/mdns_component.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/mdns/mdns_esp32.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/mdns/mdns_esp8266.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/mdns/mdns_rp2040.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/network/util.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/ota/ota_backend_arduino_esp32.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/ota/ota_backend_arduino_esp8266.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/ota/ota_backend_arduino_rp2040.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/ota/ota_backend_esp_idf.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/ota/ota_component.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/safe_mode/button/safe_mode_button.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/socket/bsd_sockets_impl.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/socket/lwip_raw_tcp_impl.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/socket/socket.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi/wifi_component.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi/wifi_component_esp32_arduino.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi/wifi_component_esp8266.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi/wifi_component_esp_idf.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi/wifi_component_pico_w.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/application.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/component.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/component_iterator.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/helpers.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/log.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/scheduler.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/util.o
Compiling /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o
Linking /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.elf
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection14switch_commandERKNS0_20SwitchCommandRequestE+0x8): undefined reference to `esphome::switch_::Switch::turn_on()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection14switch_commandERKNS0_20SwitchCommandRequestE+0xc): undefined reference to `esphome::switch_::Switch::turn_off()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection17send_sensor_stateEPNS_6sensor6SensorEf+0x8): undefined reference to `esphome::sensor::Sensor::has_state() const'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection16send_sensor_infoEPNS_6sensor6SensorE+0xc): undefined reference to `esphome::sensor::Sensor::get_unit_of_measurement[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection16send_sensor_infoEPNS_6sensor6SensorE+0x10): undefined reference to `esphome::sensor::Sensor::get_accuracy_decimals()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection16send_sensor_infoEPNS_6sensor6SensorE+0x14): undefined reference to `esphome::sensor::Sensor::get_device_class[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection16send_sensor_infoEPNS_6sensor6SensorE+0x18): undefined reference to `esphome::sensor::Sensor::get_state_class()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o:(.literal._ZN7esphome3api13APIConnection16send_switch_infoEPNS_7switch_6SwitchE+0x4): undefined reference to `esphome::switch_::Switch::get_device_class[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o: in function `esphome::api::APIConnection::switch_command(esphome::api::SwitchCommandRequest const&)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:466: undefined reference to `esphome::switch_::Switch::turn_on()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:468: undefined reference to `esphome::switch_::Switch::turn_off()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o: in function `esphome::api::APIConnection::send_sensor_state(esphome::sensor::Sensor*, float)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:414: undefined reference to `esphome::sensor::Sensor::has_state() const'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:1366: undefined reference to `esphome::sensor::Sensor::get_unit_of_measurement[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o: in function `esphome::api::APIConnection::send_sensor_info(esphome::sensor::Sensor*)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:426: undefined reference to `esphome::sensor::Sensor::get_accuracy_decimals()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:427: undefined reference to `esphome::sensor::Sensor::get_device_class[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:429: undefined reference to `esphome::sensor::Sensor::get_state_class()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.o: in function `esphome::api::APIConnection::send_switch_info(esphome::switch_::Switch*)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/api/api_connection.cpp:456: undefined reference to `esphome::switch_::Switch::get_device_class[abi:cxx11]()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0xb8): undefined reference to `vtable for esphome::wifi_signal::WiFiSignalSensor'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0xbc): undefined reference to `vtable for esphome::wifi_signal::WiFiSignalSensor'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0xdc): undefined reference to `vtable for esphome::uptime::UptimeSensor'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0xe0): undefined reference to `vtable for esphome::uptime::UptimeSensor'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0xfc): undefined reference to `vtable for esphome::restart::RestartSwitch'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x100): undefined reference to `vtable for esphome::restart::RestartSwitch'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x144): undefined reference to `esphome::sensor::Sensor::Sensor()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x148): undefined reference to `esphome::sensor::Sensor::set_device_class(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x14c): undefined reference to `esphome::sensor::Sensor::set_state_class(esphome::sensor::StateClass)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x150): undefined reference to `esphome::sensor::Sensor::set_unit_of_measurement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x154): undefined reference to `esphome::sensor::Sensor::set_accuracy_decimals(signed char)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o:(.literal._Z5setupv+0x158): undefined reference to `esphome::switch_::Switch::Switch()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `esphome::Component::set_component_source(char const*)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/core/component.h:146: undefined reference to `esphome::sensor::Sensor::Sensor()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `setup()':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:219: undefined reference to `esphome::sensor::Sensor::set_device_class(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()':
/data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:657: undefined reference to `esphome::sensor::Sensor::set_state_class(esphome::sensor::StateClass)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `setup()':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:221: undefined reference to `esphome::sensor::Sensor::set_unit_of_measurement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:221: undefined reference to `esphome::sensor::Sensor::set_accuracy_decimals(signed char)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `esphome::wifi_signal::WiFiSignalSensor::WiFiSignalSensor()':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/wifi_signal/wifi_signal_sensor.h:11: undefined reference to `esphome::sensor::Sensor::Sensor()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `setup()':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:242: undefined reference to `esphome::sensor::Sensor::set_device_class(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:243: undefined reference to `esphome::sensor::Sensor::set_unit_of_measurement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/main.cpp:245: undefined reference to `esphome::sensor::Sensor::set_accuracy_decimals(signed char)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/main.o: in function `esphome::uptime::UptimeSensor::UptimeSensor()':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/components/uptime/uptime_sensor.h:9: undefined reference to `esphome::switch_::Switch::Switch()'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.o:(.literal._ZN7esphome10Controller16setup_controllerEb+0x10): undefined reference to `esphome::sensor::Sensor::add_on_state_callback(std::function<void (float)>&&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.o:(.literal._ZN7esphome10Controller16setup_controllerEb+0x14): undefined reference to `esphome::switch_::Switch::add_on_state_callback(std::function<void (bool)>&&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.o: in function `esphome::Controller::setup_controller(bool)':
/config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.cpp:29: undefined reference to `esphome::sensor::Sensor::add_on_state_callback(std::function<void (float)>&&)'
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/esphome/.esphome/build/atom-bluetooth-proxy-ad7a6c/src/esphome/core/controller.cpp:35: undefined reference to `esphome::switch_::Switch::add_on_state_callback(std::function<void (bool)>&&)'
collect2: error: ld returned 1 exit status
*** [/data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.elf] Error 1
========================= [FAILED] Took 141.11 seconds =========================

Je débute sur ESPHOME et je vois pas ce qui me bloque. Auriez vous une idée du problème ?

Ma configuration


System Information

version core-2023.3.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 5.15.84-v8
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.31.0
Stage running
Available Repositories 1272
Downloaded Repositories 68
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.03.1
agent_version 1.4.1
docker_version 20.10.22
disk_total 109.3 GB
disk_used 10.2 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Duck DNS (1.15.0), Samba share (10.0.0), Terminal & SSH (9.6.1), File editor (5.5.0), pigpio (1.5.2), Mosquitto broker (6.1.3), Zigbee2MQTT (1.30.2-1), Home Assistant Google Drive Backup (0.110.1), ESPHome (2023.2.4)
Dashboards
dashboards 1
resources 47
views 12
mode storage
Recorder
oldest_recorder_run 12 mars 2023 à 04:56
current_recorder_run 13 mars 2023 à 12:37
estimated_db_size 228.79 MiB
database_engine sqlite
database_version 3.38.5
Spotify
api_endpoint_reachable ok
___

Salut

normalement dans les premieres ligne de ton ‹ code › esphome tu definis le modele de microcontroleur utilisé

hors dans ton code je ne vois pas cela

par exemple dans le cas d’un esp32 j’ai :

esphome:
  name: esp32tic
  platform: ESP32
  board: esp-wrover-kit

dans le cas d’une camera esp32 aithinker

esphome:
  name: espcam001
  platform: ESP32
  board: esp32cam

dans le cas d’un sonoff basic j’ai

esphome:
  name: esphalogene
  platform: ESP8266
  board: esp01_1m

ce que je constate c’est qu’il te manque le type du micro controleur

je pense que c’est là qu’est l’os

Ok, je vais tester avec:

esphome:
  name: ${name}
  platform: ESP32
  board: m5stack-core-esp32
  name_add_mac_suffix: false

Edit:
dans le YAML, il y a packages:

substitutions:
  name: atom-bluetooth-proxy-ad7a6c
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/m5stack-atom-lite.yaml@main

si on va a l’adresse bluetooth-proxies/m5stack-atom-lite.yaml at main · esphome/bluetooth-proxies · GitHub, on voit qu’il y a bien un:

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  name_add_mac_suffix: true
  project:
    name: esphome.bluetooth-proxy
    version: "1.0"

esp32:
  board: m5stack-atom
  framework:
    type: esp-idf

je pense pas que ca soit le soucis qui manque esphome: dans mon YAML, vu que ca l’air de récupérer ce qui faut sur le GitHub. Je me trompe peu être.

Bonjour,
en fouillant le github de ESPHome, j’ai trouvé mon problème. Fallait que je clique sur Clean Build Files et la compilation a fonctionner c’est fois ci.

Linking /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.elf
RAM:   [==        ]  16.7% (used 54632 bytes from 327680 bytes)
Flash: [=======   ]  69.2% (used 1269001 bytes from 1835008 bytes)
Building /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.bin"], ["/data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.elf"])
Wrote 0x147390 bytes to file /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware-factory.bin, ready to flash to offset 0x0
======================== [SUCCESS] Took 466.53 seconds ========================
INFO Successfully compiled program.
INFO Resolving IP address of atom-bluetooth-proxy-ad7a6c.local
INFO  -> 192.168.1.25
INFO Uploading /data/atom-bluetooth-proxy-ad7a6c/.pioenvs/atom-bluetooth-proxy-ad7a6c/firmware.bin (1274768 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from atom-bluetooth-proxy-ad7a6c.local using esphome API
WARNING Can't connect to ESPHome API for atom-bluetooth-proxy-ad7a6c.local: Error connecting to ('192.168.1.25', 6053): [Errno 111] Connect call failed ('192.168.1.25', 6053)
INFO Trying to reconnect to atom-bluetooth-proxy-ad7a6c.local in the background
INFO Successfully connected to atom-bluetooth-proxy-ad7a6c.local
[07:11:50][I][app:102]: ESPHome version 2023.2.4 compiled on Mar 14 2023, 07:05:56
[07:11:50][I][app:104]: Project esphome.bluetooth-proxy version 1.0
[07:11:50][C][wifi:504]: WiFi:
[07:11:50][C][wifi:362]:   Local MAC: 4C:75:25:xx:xx:xx
[07:11:50][C][wifi:363]:   SSID: 'Livebox-xxxx'[redacted]
[07:11:50][C][wifi:364]:   IP Address: 192.168.1.25
[07:11:50][C][wifi:366]:   BSSID: 44:D4:54:xx:xx:xx[redacted]
[07:11:50][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy-ad7a6c'
[07:11:50][C][wifi:369]:   Signal strength: -55 dB ▂▄▆█
[07:11:50][C][wifi:373]:   Channel: 1
[07:11:50][C][wifi:374]:   Subnet: 255.255.255.0
[07:11:50][C][wifi:375]:   Gateway: 192.168.1.1
[07:11:50][C][wifi:376]:   DNS1: 192.168.1.1
[07:11:50][C][wifi:377]:   DNS2: 0.0.0.0
[07:11:50][C][logger:293]: Logger:
[07:11:50][C][logger:294]:   Level: DEBUG
[07:11:50][C][logger:295]:   Log Baud Rate: 115200
[07:11:50][C][logger:296]:   Hardware UART: UART0
[07:11:50][C][uptime.sensor:031]: Uptime Sensor 'Uptime'
[07:11:50][C][uptime.sensor:031]:   Device Class: 'duration'
[07:11:50][C][uptime.sensor:031]:   State Class: ''
[07:11:50][C][uptime.sensor:031]:   Unit of Measurement: 's'
[07:11:50][C][uptime.sensor:031]:   Accuracy Decimals: 0
[07:11:50][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[07:11:50][C][bluetooth_proxy:065]: Bluetooth Proxy:
[07:11:50][C][bluetooth_proxy:066]:   Active: YES
[07:11:50][C][safe_mode.button:022]: Safe Mode Button 'Safe Mode Boot'
[07:11:50][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[07:11:50][C][esp32_ble:214]: ESP32 BLE:
[07:11:50][C][esp32_ble_tracker:583]: BLE Tracker:
[07:11:50][C][esp32_ble_tracker:584]:   Scan Duration: 300 s
[07:11:50][C][esp32_ble_tracker:585]:   Scan Interval: 1100.0 ms
[07:11:50][C][esp32_ble_tracker:586]:   Scan Window: 1100.0 ms
[07:11:50][C][esp32_ble_tracker:587]:   Scan Type: ACTIVE
[07:11:50][C][esp32_ble_tracker:588]:   Continuous Scanning: True
[07:11:50][C][mdns:108]: mDNS:
[07:11:50][C][mdns:109]:   Hostname: atom-bluetooth-proxy-ad7a6c
[07:11:50][C][ota:093]: Over-The-Air Updates:
[07:11:50][C][ota:094]:   Address: atom-bluetooth-proxy-ad7a6c.local:3232
[07:11:50][C][api:138]: API Server:
[07:11:50][C][api:139]:   Address: atom-bluetooth-proxy-ad7a6c.local:6053
[07:11:50][C][api:141]:   Using noise encryption: YES
[07:11:50][C][improv_serial:032]: Improv Serial:
[07:11:50][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi Signal'
[07:11:50][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[07:11:50][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[07:11:50][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[07:11:50][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[07:11:50][D][api:102]: Accepted ::FFFF:192.168.1.xxx
[07:11:50][D][api.connection:918]: Home Assistant 2023.3.3 (::FFFF:192.168.1.xxx): Connected successfully