Closed karli2000 closed 3 months ago
- /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml:2062:16: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'sendcommand'? disp1->send_command("tm_esphome.en=0"); ^
~~~ sendcommand
This shouldn't be an issue with ESPHome v2024.5. I'm not at home right now, but when I come back I will try to duplicate it and come back to you.
I could compile with exactly the same yaml you provided and it went all fine. Also using ESPHome v2024.5.5 here.
Just tried it again, restarted my whole HA System, even set the ESPHome compile_process_limit (the hardware is a Raspberry PI 4 with 4GB Ram, never had a issue with memory so far during compilation), cleaned all build files and still the same error. Any idea what could be the problem?
Same problem, can't compile on 2024.5.5, even tried with 2024.6.0 dev still can't.
I don't think this is memory related. Looks like older components files in the cache. I can change the code to use other functions, but that shouldn't be the way. Anyways, I will look at that option when I get home.
Could you please try using arduino and let me know if it compiles (or which error message you have in that case)? Just add this to your yaml:
esp32:
framework:
type: arduino
same here:
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
src/esphome/components/nextion/nextion_upload.cpp' not found, needed by target
.pioenvs/nspanel/src/esphome/components/nextion/nextion_upload.o'.
========================== [FAILED] Took 6.30 seconds ==========================This is a different error message. Have you tried cleaning build files?
I also encountered a compile failure. In addition to clearing the build, you also need to clean the external components, and then it will compile successfully.
clearing the build, you also need to clean the external components, had the same issue clearing is allowing it to compile.
I also encountered a compile failure. In addition to clearing the build, you also need to clean the external components, and then it will compile successfully.
How do you clear the components?
ok, my stupid, with "clean build files" everything is ok
Same problem. INFO Configuration is valid and it will cause error when updated. Even after "cleaning build files"
tried it with arduino framework, same result, see attached log. Is there any way i can clean the cache files manually?
I don't think this is memory related. Looks like older components files in the cache. I can change the code to use other functions, but that shouldn't be the way. Anyways, I will look at that option when I get home.
Could you please try using arduino and let me know if it compiles (or which error message you have in that case)? Just add this to your yaml:
esp32: framework: type: arduino
I also encountered a compile failure. In addition to clearing the build, you also need to clean the external components, and then it will compile successfully.
How do you clear the components?
delete all files in the "external_components" folder
我也遇到编译失败的情况,除了清除build之外,还需要清理外部的组件,然后就可以编译成功了。
如何清除组件?
删除“external_components”文件夹中的所有文件
It work, thx
I also encountered a compile failure. In addition to clearing the build, you also need to clean the external components, and then it will compile successfully.
How do you clear the components?
delete all files in the "external_components" folder
where can i find the "external_components" folder?
I also encountered a compile failure. In addition to clearing the build, you also need to clean the external components, and then it will compile successfully.
How do you clear the components?
delete all files in the "external_components" folder
where can i find the "external_components" folder?
Since I installed ESPHome using Docker, it is easy to locate the folder. If it is installed as a Home Assistant add-on, I guess it should be in '
After updating Home Assistant 2024.6.2. Everything works without deleting anything!!!
Same for me, after updating Home Assistant to 2024.6.2 it compiles without problems, so you can close this!
Thank your all for the great work, i really love your blueprint!
TFT Version
4.3.7
ESPHome Version
2024.5.5
Blueprint Version
4.3.8
Panel Model
EU
What is the bug?
Not able to compile 4.3.8, see ESPHome logs
Steps to Reproduce
Update blueprint in HA Run "Clean Build Files" ins ESPHome Run "Install" in ESPHome
Your Panel's YAML
ESPHome Logs
INFO ESPHome 2024.5.5 INFO Reading configuration /config/esphome/nspanel.yaml... INFO Detected timezone 'Europe/Vienna' INFO Generating C++ source... INFO Compiling app... Processing nspanel (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
~~~ sendcommand Compiling .pioenvs/nspanel/bootloader_support/src/bootloader_efuse.o Compiling .pioenvs/nspanel/bootloader_support/src/idf/bootloader_sha.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborencoder_close_container_checked.o Archiving .pioenvs/nspanel/esp-idf/bootloader_support/libbootloader_support.a /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml:2446:14: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'sendcommand'? disp1->send_command("tm_esphome.en=0"); ^~~~ sendcommand Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborencoder.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborerrorstrings.o /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml:2605:18: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'sendcommand'? disp1->send_command("back_page_id=1"); ^~~~ sendcommand Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborparser_dup_string.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborparser.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborpretty_stdio.o /data/packages/566b10a3/esphome/nspanel_esphome_addon_upload_tft.yaml: In lambda function: /data/packages/566b10a3/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:39, 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/nspanel/cbor/tinycbor/src/cborpretty.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/cbortojson.o /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml:253:16: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'sendcommand'? disp1->send_command(cmd.c_str()); ^~~~ sendcommand Compiling .pioenvs/nspanel/cbor/tinycbor/src/cborvalidation.o Compiling .pioenvs/nspanel/cbor/tinycbor/src/open_memstream.o Compiling .pioenvs/nspanel/cmock/CMock/src/cmock.o Archiving .pioenvs/nspanel/esp-idf/cbor/libcbor.a /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml: In lambda function: /data/packages/566b10a3/esphome/nspanel_esphome_core.yaml:790:18: error: 'class esphome::nextion::Nextion' has no member named 'send_command'; did you mean 'sendcommand'? disp1->send_command("prg_timer.en=0"); ^~~~ sendcommand Compiling .pioenvs/nspanel/coap/libcoap/src/address.o Archiving .pioenvs/nspanel/esp-idf/cmock/libcmock.a Compiling .pioenvs/nspanel/coap/libcoap/src/async.o Compiling .pioenvs/nspanel/coap/libcoap/src/block.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_asn1.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_cache.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_debug.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_event.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_hashkey.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_io.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_mbedtls.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_notls.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_prng.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_session.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_tcp.o Compiling .pioenvs/nspanel/coap/libcoap/src/coap_time.o Compiling .pioenvs/nspanel/coap/libcoap/src/encode.o Compiling .pioenvs/nspanel/coap/libcoap/src/mem.o Compiling .pioenvs/nspanel/coap/libcoap/src/net.o Compiling .pioenvs/nspanel/coap/libcoap/src/option.o Archiving .pioenvs/nspanel/esp-idf/asio/libasio.a Compiling .pioenvs/nspanel/coap/libcoap/src/pdu.o Compiling .pioenvs/nspanel/coap/libcoap/src/resource.o Compiling .pioenvs/nspanel/coap/libcoap/src/str.o Compiling .pioenvs/nspanel/coap/libcoap/src/subscribe.o Compiling .pioenvs/nspanel/coap/libcoap/src/uri.o Compiling .pioenvs/nspanel/console/commands.o Compiling .pioenvs/nspanel/console/esp_console_repl.o Compiling .pioenvs/nspanel/console/split_argv.o Compiling .pioenvs/nspanel/console/linenoise/linenoise.o Compiling .pioenvs/nspanel/console/argtable3/arg_cmd.o Archiving .pioenvs/nspanel/esp-idf/coap/libcoap.a Compiling .pioenvs/nspanel/console/argtable3/arg_date.o Compiling .pioenvs/nspanel/console/argtable3/arg_dbl.o Compiling .pioenvs/nspanel/console/argtable3/arg_dstr.o Compiling .pioenvs/nspanel/console/argtable3/arg_end.o Compiling .pioenvs/nspanel/console/argtable3/arg_file.o Compiling .pioenvs/nspanel/console/argtable3/arg_hashtable.o Compiling .pioenvs/nspanel/console/argtable3/arg_int.o Compiling .pioenvs/nspanel/console/argtable3/arg_lit.o Compiling .pioenvs/nspanel/console/argtable3/arg_rem.o Compiling .pioenvs/nspanel/console/argtable3/arg_rex.o Compiling .pioenvs/nspanel/console/argtable3/arg_str.o Compiling .pioenvs/nspanel/console/argtable3/arg_utils.o Compiling .pioenvs/nspanel/console/argtable3/argtable3.o Compiling .pioenvs/nspanel/cxx/cxx_exception_stubs.o Compiling .pioenvs/nspanel/cxx/cxx_guards.o Compiling .pioenvs/nspanel/driver/gpio.o Archiving .pioenvs/nspanel/esp-idf/console/libconsole.a Compiling .pioenvs/nspanel/driver/i2c.o *** [.pioenvs/nspanel/src/main.o] Error 1 ========================= [FAILED] Took 202.69 seconds =========================Home Assistant Logs
Error is during compiling, no log entry in HA-logs