MarkWattTech / MWT-NSPanel

NSPanel based on marcfager panel
29 stars 13 forks source link

Compile errors and out of date options #2

Open StasonJatham opened 10 months ago

StasonJatham commented 10 months ago

Simple copy and paste does not work.

restore_state is out of date (breaking change) it should be restore_mode: "DISABLED" sadly I do not know each restore_mode setting for the enable restore_state as there isn't just an enabled option.

Also gets some compile errors related to Nexion I believe

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 4.24 seconds ==========================
urbatecte commented 9 months ago

Hi @StasonJatham ,

You just have to comment the lines: external_components: - source: github://pr#2956 components: [nextion] refresh: 1h

This was only mandatory before ESPHOME correct the issue itself, which is now the case. Enjoy! @MarkWattTech Hi Mark, can you update your yaml file accordingly :-) Cheers

grumete commented 7 months ago

Eres un crack. Llevo 2 dias y simplemente era comentar el error de esphome. GRACIAS