my NSPanel runson ESPHOME 2023.5.5 an everything is fine . Now i wanted to update to 2023.6.1 .
But i got an compiling-error .
after deleting this part in ESPHOME , it work fine. ---
Compiling /data/nspanel/.pioenvs/nspanel/src/esphome/components/nextion/nextion.cpp.o
Compiling /data/nspanel/.pioenvs/nspanel/src/esphome/components/nextion/nextion_commands.cpp.o
In file included from src/esphome/components/nextion/nextion_commands.cpp:1:
src/esphome/components/nextion/nextion.h:324:35: error: 'esphome::time::ESPTime' has not been declared
void set_nextion_rtc_time(time::ESPTime time);
^~~~~~~
src/esphome/components/nextion/nextion_commands.cpp:223:42: error: variable or field 'set_nextion_rtc_time' declared void
void Nextion::set_nextion_rtc_time(time::ESPTime time) {
^~~~~~~
src/esphome/components/nextion/nextion_commands.cpp:223:42: error: 'ESPTime' is not a member of 'esphome::time'
src/esphome/components/nextion/nextion_commands.cpp:223:42: note: suggested alternative:
In file included from src/esphome/components/time/real_time_clock.h:8,
from src/esphome/components/nextion/nextion.h:21,
from src/esphome/components/nextion/nextion_commands.cpp:1:
src/esphome/core/time.h:12:8: note: 'esphome::ESPTime'
struct ESPTime {
^~~~~~~
In file included from src/esphome/components/nextion/nextion.cpp:1:
src/esphome/components/nextion/nextion.h:324:35: error: 'esphome::time::ESPTime' has not been declared
void set_nextion_rtc_time(time::ESPTime time);
^~~~~~~
*** [/data/nspanel/.pioenvs/nspanel/src/esphome/components/nextion/nextion_commands.cpp.o] Error 1
*** [/data/nspanel/.pioenvs/nspanel/src/esphome/components/nextion/nextion.cpp.o] Error 1
========================== [FAILED] Took 5.02 seconds ==========================
The solution to remove the outdated external components works to compile correctly without the âESPTime not declaredâ error message.
However, I think removing that is now inhibiting my ability to update the tft file via uart.
When I make a service call in Home Assistant âESPHome: nspanel_upload_tftâ I get the following error messages in the log:
[12:32:55][E][uart:015]: Reading from UART timed out at byte 0!
[12:32:55][W][nextion:072]: Nextion is not connected!
[12:32:55][W][component:204]: Component nextion.display took a long time for an operation (0.11 s).
[12:32:55][W][component:205]: Components should block for at most 20-30ms.
I have the same issue here.
My compilation used to work fine but after doing updates, I now get the following:
In file included from src/esphome/components/nextion/nextion_commands.cpp:1:
src/esphome/components/nextion/nextion.h:324:35: error: âesphome::time::ESPTimeâ has not been declared
void set_nextion_rtc_time(time::ESPTime time);
^~~~~~~
src/esphome/components/nextion/nextion_commands.cpp:223:42: error: variable or field âset_nextion_rtc_timeâ declared void
void Nextion::set_nextion_rtc_time(time::ESPTime time) {
^~~~~~~
src/esphome/components/nextion/nextion_commands.cpp:223:42: error: âESPTimeâ is not a member of âesphome::timeâ
src/esphome/components/nextion/nextion_commands.cpp:223:42: note: suggested alternative:
In file included from src/esphome/components/time/real_time_clock.h:8,
from src/esphome/components/nextion/nextion.h:21,
from src/esphome/components/nextion/nextion_commands.cpp:1:
src/esphome/core/time.h:12:8: note: âesphome::ESPTimeâ
struct ESPTime {
^~~~~~~
In file included from src/esphome/components/nextion/nextion.cpp:1:
src/esphome/components/nextion/nextion.h:324:35: error: âesphome::time::ESPTimeâ has not been declared
void set_nextion_rtc_time(time::ESPTime time);
^~~~~~~
In file included from src/esphome/components/nextion/nextion_upload.cpp:1:
src/esphome/components/nextion/nextion.h:324:35: error: âesphome::time::ESPTimeâ has not been declared
void set_nextion_rtc_time(time::ESPTime time);
^~~~~~~
*** [/data/sonoff-nsp-lounge/.pioenvs/sonoff-nsp-lounge/src/esphome/components/nextion/nextion_commands.cpp.o] Error 1
*** [/data/sonoff-nsp-lounge/.pioenvs/sonoff-nsp-lounge/src/esphome/components/nextion/nextion_upload.cpp.o] Error 1
*** [/data/sonoff-nsp-lounge/.pioenvs/sonoff-nsp-lounge/src/esphome/components/nextion/nextion.cpp.o] Error 1