Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.46k stars 262 forks source link

`Bug` Compile error with ESPHome 2024.5.5 #2153

Closed raulbalanza closed 5 months ago

raulbalanza commented 5 months ago

TFT Version

No response

ESPHome Version

2024.5.5

Blueprint Version

No response

Panel Model

EU

What is the bug?

I am trying to flash a brand new NSPanel. However, I cannot get ESPHome to compile the latest build, neither in the main nor in the dev branches. I attach the compile log in the dev branch below (the main branch returns similar errors). I already tried cleaning the build files and compiling again.

Steps to Reproduce

No response

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: "nspanelthree"
  friendly_name: "nspanelthree"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "http://192.168.2.108:8080/nspanel_eu.tft"  # Optional
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

# Customization area
##### My customization - Start #####
##### My customization - End #####

# Core and optional configurations
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: dev
    refresh: 300s
    files:
      - nspanel_esphome.yaml # Basic package
      # Optional advanced and add-on configurations
      # - esphome/nspanel_esphome_advanced.yaml
      # - esphome/nspanel_esphome_addon_ble_tracker.yaml
      # - esphome/nspanel_esphome_addon_bluetooth_proxy.yaml
      # - esphome/nspanel_esphome_addon_climate_cool.yaml
      - esphome/nspanel_esphome_addon_climate_heat.yaml
      # - esphome/nspanel_esphome_addon_climate_dual.yaml
      # - esphome/nspanel_esphome_addon_cover.yaml

ESPHome Logs

INFO ESPHome 2024.5.5
INFO Reading configuration /config/esphome/nspanelthree.yaml...
INFO Detected timezone 'Europe/Madrid'
INFO Generating C++ source...
INFO Compiling app...
Processing nspanelthree (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking  [####################################]  100%
Library Manager: ArduinoJson@6.18.5 has been installed!
INFO ArduinoJson@6.18.5 has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.40407.240606 (4.4.7) 
 - tool-cmake @ 3.16.4 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
Generating assembly for certificate bundle...
Dependency Graph
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/nspanelthree/src/esphome/components/adc/adc_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/api_connection.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/api_frame_helper.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/api_pb2.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/api_pb2_service.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/api_server.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/list_entities.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/proto.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/subscribe_state.o
Compiling .pioenvs/nspanelthree/src/esphome/components/api/user_services.o
Compiling .pioenvs/nspanelthree/src/esphome/components/binary_sensor/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/binary_sensor/binary_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/binary_sensor/filter.o
Compiling .pioenvs/nspanelthree/src/esphome/components/button/button.o
Compiling .pioenvs/nspanelthree/src/esphome/components/climate/climate.o
Compiling .pioenvs/nspanelthree/src/esphome/components/climate/climate_mode.o
Compiling .pioenvs/nspanelthree/src/esphome/components/climate/climate_traits.o
Compiling .pioenvs/nspanelthree/src/esphome/components/display/display.o
Compiling .pioenvs/nspanelthree/src/esphome/components/display/display_buffer.o
Compiling .pioenvs/nspanelthree/src/esphome/components/display/rect.o
Compiling .pioenvs/nspanelthree/src/esphome/components/esp32/core.o
Compiling .pioenvs/nspanelthree/src/esphome/components/esp32/gpio.o
Compiling .pioenvs/nspanelthree/src/esphome/components/esp32/preferences.o
Compiling .pioenvs/nspanelthree/src/esphome/components/factory_reset/button/factory_reset_button.o
Compiling .pioenvs/nspanelthree/src/esphome/components/gpio/binary_sensor/gpio_binary_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/gpio/switch/gpio_switch.o
Compiling .pioenvs/nspanelthree/src/esphome/components/homeassistant/time/homeassistant_time.o
Compiling .pioenvs/nspanelthree/src/esphome/components/json/json_util.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ledc/ledc_output.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger_esp32.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger_esp8266.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger_host.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger_libretiny.o
Compiling .pioenvs/nspanelthree/src/esphome/components/logger/logger_rp2040.o
Compiling .pioenvs/nspanelthree/src/esphome/components/md5/md5.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_component.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_esp32.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_esp8266.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_host.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_libretiny.o
Compiling .pioenvs/nspanelthree/src/esphome/components/mdns/mdns_rp2040.o
Compiling .pioenvs/nspanelthree/src/esphome/components/network/util.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/nextion.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/nextion_commands.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/nextion_component.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/nextion_upload_arduino.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/nextion_upload_idf.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/sensor/nextion_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nextion/text_sensor/nextion_textsensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/ha_components.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/hardware.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/icons.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/mdiicons.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/nextion_components.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/pages.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/text.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/upload_tft.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/utilities.o
Compiling .pioenvs/nspanelthree/src/esphome/components/nspanel_ha_blueprint/versioning.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ntc/ntc.o
Compiling .pioenvs/nspanelthree/src/esphome/components/number/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/number/number.o
Compiling .pioenvs/nspanelthree/src/esphome/components/number/number_call.o
Compiling .pioenvs/nspanelthree/src/esphome/components/number/number_traits.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_backend_arduino_esp32.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_backend_arduino_esp8266.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_backend_arduino_libretiny.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_backend_arduino_rp2040.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_backend_esp_idf.o
Compiling .pioenvs/nspanelthree/src/esphome/components/ota/ota_component.o
Compiling .pioenvs/nspanelthree/src/esphome/components/output/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/output/float_output.o
Compiling .pioenvs/nspanelthree/src/esphome/components/psram/psram.o
Compiling .pioenvs/nspanelthree/src/esphome/components/resistance/resistance_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/restart/button/restart_button.o
Compiling .pioenvs/nspanelthree/src/esphome/components/rtttl/rtttl.o
Compiling .pioenvs/nspanelthree/src/esphome/components/script/script.o
Compiling .pioenvs/nspanelthree/src/esphome/components/select/select.o
Compiling .pioenvs/nspanelthree/src/esphome/components/select/select_call.o
Compiling .pioenvs/nspanelthree/src/esphome/components/select/select_traits.o
Compiling .pioenvs/nspanelthree/src/esphome/components/sensor/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/sensor/filter.o
Compiling .pioenvs/nspanelthree/src/esphome/components/sensor/sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/socket/bsd_sockets_impl.o
Compiling .pioenvs/nspanelthree/src/esphome/components/socket/lwip_raw_tcp_impl.o
Compiling .pioenvs/nspanelthree/src/esphome/components/socket/lwip_sockets_impl.o
Compiling .pioenvs/nspanelthree/src/esphome/components/socket/socket.o
Compiling .pioenvs/nspanelthree/src/esphome/components/switch/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/switch/switch.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/binary_sensor/template_binary_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/number/template_number.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/select/template_select.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/sensor/template_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/switch/template_switch.o
Compiling .pioenvs/nspanelthree/src/esphome/components/template/text_sensor/template_text_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/text_sensor/filter.o
Compiling .pioenvs/nspanelthree/src/esphome/components/text_sensor/text_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/components/thermostat/thermostat_climate.o
Compiling .pioenvs/nspanelthree/src/esphome/components/time/automation.o
Compiling .pioenvs/nspanelthree/src/esphome/components/time/real_time_clock.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component_esp32_arduino.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component_esp8266.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component_esp_idf.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component_libretiny.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_component_rp2040.o
Compiling .pioenvs/nspanelthree/src/esphome/components/uart/uart_debugger.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component_esp32_arduino.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component_esp8266.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component_esp_idf.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component_libretiny.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi/wifi_component_pico_w.o
Compiling .pioenvs/nspanelthree/src/esphome/components/wifi_signal/wifi_signal_sensor.o
Compiling .pioenvs/nspanelthree/src/esphome/core/application.o
Compiling .pioenvs/nspanelthree/src/esphome/core/color.o
Compiling .pioenvs/nspanelthree/src/esphome/core/component.o
Compiling .pioenvs/nspanelthree/src/esphome/core/component_iterator.o
Compiling .pioenvs/nspanelthree/src/esphome/core/controller.o
Compiling .pioenvs/nspanelthree/src/esphome/core/entity_base.o
Compiling .pioenvs/nspanelthree/src/esphome/core/helpers.o
Compiling .pioenvs/nspanelthree/src/esphome/core/log.o
Compiling .pioenvs/nspanelthree/src/esphome/core/ring_buffer.o
Compiling .pioenvs/nspanelthree/src/esphome/core/scheduler.o
Compiling .pioenvs/nspanelthree/src/esphome/core/string_ref.o
Compiling .pioenvs/nspanelthree/src/esphome/core/time.o
Compiling .pioenvs/nspanelthree/src/esphome/core/util.o
Compiling .pioenvs/nspanelthree/src/main.o
Generating LD script .pioenvs/nspanelthree/memory.ld
Compiling .pioenvs/nspanelthree/app_trace/app_trace.o
Compiling .pioenvs/nspanelthree/app_trace/app_trace_util.o
Compiling .pioenvs/nspanelthree/app_trace/host_file_io.o
Compiling .pioenvs/nspanelthree/app_trace/gcov/gcov_rtio.o
Archiving .pioenvs/nspanelthree/esp-idf/app_trace/libapp_trace.a
Compiling .pioenvs/nspanelthree/app_update/esp_ota_ops.o
Compiling .pioenvs/nspanelthree/app_update/esp_app_desc.o
Archiving .pioenvs/nspanelthree/esp-idf/app_update/libapp_update.a
Compiling .pioenvs/nspanelthree/asio/asio/asio/src/asio.o
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml:2062:16: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'send_command_'?
             disp1->send_command("tm_esphome.en=0");
                ^~~~~~~~~~~~
                send_command_
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_common.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_common_loader.o
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml:2446:14: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'send_command_'?
           disp1->send_command("tm_esphome.en=0");
              ^~~~~~~~~~~~
              send_command_
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml:2605:18: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'send_command_'?
               disp1->send_command("back_page_id=1");
                  ^~~~~~~~~~~~
                  send_command_
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_clock_init.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_flash.o
/data/packages/891b50f5/esphome/nspanel_esphome_addon_upload_tft.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_addon_upload_tft.yaml:127:83: error: no matching function for call to 'esphome::nextion::Nextion::upload_tft(uint32_t&, bool)'
           id(tft_upload_result) = disp1->upload_tft(baud_rate, !disp1->is_setup());
                                                                                   ^
In file included from src/esphome/components/nextion/automation.h:3,
                 from src/esphome.h:43,
                 from src/main.cpp:3:
src/esphome/components/nextion/nextion.h:926:8: note: candidate: 'bool esphome::nextion::Nextion::upload_tft()'
   bool upload_tft();
        ^~~~~~~~~~
src/esphome/components/nextion/nextion.h:926:8: note:   candidate expects 0 arguments, 2 provided
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_mem.o
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml:253:16: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'send_command_'?
               disp1->send_command(cmd.c_str());
                ^~~~~~~~~~~~
                send_command_
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_random.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_random_esp32.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_utility.o
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml: In lambda function:
/data/packages/891b50f5/esphome/nspanel_esphome_core.yaml:790:18: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'send_command_'?
                 disp1->send_command("prg_timer.en=0");
                  ^~~~~~~~~~~~
                  send_command_
Compiling .pioenvs/nspanelthree/bootloader_support/src/esp_image_format.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/flash_encrypt.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/secure_boot.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/flash_partitions.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/flash_qio_mode.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_flash_config_esp32.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/bootloader_efuse.o
Compiling .pioenvs/nspanelthree/bootloader_support/src/idf/bootloader_sha.o
Archiving .pioenvs/nspanelthree/esp-idf/bootloader_support/libbootloader_support.a
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborencoder_close_container_checked.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborencoder.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborerrorstrings.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborparser_dup_string.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborparser.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborpretty_stdio.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborpretty.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cbortojson.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/cborvalidation.o
Compiling .pioenvs/nspanelthree/cbor/tinycbor/src/open_memstream.o
Archiving .pioenvs/nspanelthree/esp-idf/cbor/libcbor.a
Compiling .pioenvs/nspanelthree/cmock/CMock/src/cmock.o
Archiving .pioenvs/nspanelthree/esp-idf/cmock/libcmock.a
Compiling .pioenvs/nspanelthree/coap/libcoap/src/address.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/async.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/block.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_asn1.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_cache.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_debug.o
Archiving .pioenvs/nspanelthree/esp-idf/asio/libasio.a
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_event.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_hashkey.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_io.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_mbedtls.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_notls.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_prng.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_session.o
Compiling .pioenvs/nspanelthree/coap/libcoap/src/coap_tcp.o
*** [.pioenvs/nspanelthree/src/main.o] Error 1
========================= [FAILED] Took 96.60 seconds =========================

Home Assistant Logs

No response

raulbalanza commented 5 months ago

I solved it by reinstalling ESPHome.