You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to do an update in HomeAssistant 2023.7.0 - ESPHome I was getting this error message which did not previously exist:
`Generating partitions /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/partitions.bin
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib505/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib6b4/SPI/SPI.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib6b4/libSPI.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/FS/FS.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/FS/vfs_api.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib505/libAsyncTCP-esphome.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/libc1a/SPIFFS/SPIFFS.cpp.o
/config/esphome/lilygo-weather-display.yaml: In lambda function:
/config/esphome/lilygo-weather-display.yaml:246:7: error: 'Image' was not declared in this scope
Image *image = NULL;
^ ~
/config/esphome/lilygo-weather-display.yaml:246:7: note: suggested alternative:
In file included from src/esphome.h:31,
from src/main.cpp:3:
src/esphome/components/image/image.h:34:7: note: 'esphome::image::Image'
class Image : public display::BaseImage {
^~~~~
/config/esphome/lilygo-weather-display.yaml:246:20: error: expected primary-expression before '=' token
Image *image = NULL;
^
/config/esphome/lilygo-weather-display.yaml:250:45: error: expected primary-expression before '=' token
if (condition == "clear-night") image = id(icon_clear_night);
^
/config/esphome/lilygo-weather-display.yaml:251:45: error: expected primary-expression before '=' token
else if (condition == "cloudy") image = id(icon_cloudy);
^
/config/esphome/lilygo-weather-display.yaml:252:51: error: expected primary-expression before '=' token
else if (condition == "partlycloudy") image = id(icon_partlycloudy);
^
/config/esphome/lilygo-weather-display.yaml:253:42: error: expected primary-expression before '=' token
else if (condition == "fog") image = id(icon_fog);
^
/config/esphome/lilygo-weather-display.yaml:254:43: error: expected primary-expression before '=' token
else if (condition == "hail") image = id(icon_rainy);
^
/config/esphome/lilygo-weather-display.yaml:255:48: error: expected primary-expression before '=' token
else if (condition == "lightning") image = id(icon_lightning);
^
/config/esphome/lilygo-weather-display.yaml:256:54: error: expected primary-expression before '=' token
else if (condition == "lightning-rainy") image = id(icon_lightning);
^
/config/esphome/lilygo-weather-display.yaml:257:46: error: expected primary-expression before '=' token
else if (condition == "pouring") image = id(icon_pouring);
^
/config/esphome/lilygo-weather-display.yaml:258:44: error: expected primary-expression before '=' token
else if (condition == "rainy") image = id(icon_rainy);
^
/config/esphome/lilygo-weather-display.yaml:259:44: error: expected primary-expression before '=' token
else if (condition == "snowy") image = id(icon_snowy);
^
/config/esphome/lilygo-weather-display.yaml:260:50: error: expected primary-expression before '=' token
else if (condition == "snowy-rainy") image = id(icon_snowy_rainy);
^
/config/esphome/lilygo-weather-display.yaml:261:44: error: expected primary-expression before '=' token
else if (condition == "sunny") image = id(icon_sunny);
^
/config/esphome/lilygo-weather-display.yaml:262:44: error: expected primary-expression before '=' token
else if (condition == "windy") image = id(icon_windy);
^
/config/esphome/lilygo-weather-display.yaml:263:17: error: expected primary-expression before '!=' token
if (image != NULL)
^~
/config/esphome/lilygo-weather-display.yaml:265:30: error: expected primary-expression before ')' token
it.image(0, 38, image);
^
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/FileSupport.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/libFS.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/OpenFontRender.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/basepic.c.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftadvanc.c.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/libc1a/libSPIFFS.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftapi.c.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftbase.c.o
*** [/data/lilygo-weather-display/.pioenvs/lilygo-weather-display/src/main.cpp.o] Error 1
========================= [FAILED] Took 108.47 seconds =========================
=== [ERROR] /config/esphome/lilygo-weather-display.yaml ===
`
(of note, I had previously made some changes in the YAML for my own purposes; using my own backyard weather station as the basis for the display of the current temperature - so line 246 is actually line 236 in the original YAML). These changes had no bearing on this issue.
Regardless, the fix for the issue described above is as follows:
line 236 in the original YAML which reads:
Image *image = NULL;
needs to be changed to:
image::Image *image = NULL;
Once done, it compiles and updates ok.
Hope this helps, and thanks again for this project!
The text was updated successfully, but these errors were encountered:
When trying to do an update in HomeAssistant 2023.7.0 - ESPHome I was getting this error message which did not previously exist:
`Generating partitions /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/partitions.bin
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib505/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib6b4/SPI/SPI.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib6b4/libSPI.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/FS/FS.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/FS/vfs_api.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib505/libAsyncTCP-esphome.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/libc1a/SPIFFS/SPIFFS.cpp.o
/config/esphome/lilygo-weather-display.yaml: In lambda function:
/config/esphome/lilygo-weather-display.yaml:246:7: error: 'Image' was not declared in this scope
Image *image = NULL;
^ ~
/config/esphome/lilygo-weather-display.yaml:246:7: note: suggested alternative:
In file included from src/esphome.h:31,
from src/main.cpp:3:
src/esphome/components/image/image.h:34:7: note: 'esphome::image::Image'
class Image : public display::BaseImage {
^~~~~
/config/esphome/lilygo-weather-display.yaml:246:20: error: expected primary-expression before '=' token
Image *image = NULL;
^
/config/esphome/lilygo-weather-display.yaml:250:45: error: expected primary-expression before '=' token
if (condition == "clear-night") image = id(icon_clear_night);
^
/config/esphome/lilygo-weather-display.yaml:251:45: error: expected primary-expression before '=' token
else if (condition == "cloudy") image = id(icon_cloudy);
^
/config/esphome/lilygo-weather-display.yaml:252:51: error: expected primary-expression before '=' token
else if (condition == "partlycloudy") image = id(icon_partlycloudy);
^
/config/esphome/lilygo-weather-display.yaml:253:42: error: expected primary-expression before '=' token
else if (condition == "fog") image = id(icon_fog);
^
/config/esphome/lilygo-weather-display.yaml:254:43: error: expected primary-expression before '=' token
else if (condition == "hail") image = id(icon_rainy);
^
/config/esphome/lilygo-weather-display.yaml:255:48: error: expected primary-expression before '=' token
else if (condition == "lightning") image = id(icon_lightning);
^
/config/esphome/lilygo-weather-display.yaml:256:54: error: expected primary-expression before '=' token
else if (condition == "lightning-rainy") image = id(icon_lightning);
^
/config/esphome/lilygo-weather-display.yaml:257:46: error: expected primary-expression before '=' token
else if (condition == "pouring") image = id(icon_pouring);
^
/config/esphome/lilygo-weather-display.yaml:258:44: error: expected primary-expression before '=' token
else if (condition == "rainy") image = id(icon_rainy);
^
/config/esphome/lilygo-weather-display.yaml:259:44: error: expected primary-expression before '=' token
else if (condition == "snowy") image = id(icon_snowy);
^
/config/esphome/lilygo-weather-display.yaml:260:50: error: expected primary-expression before '=' token
else if (condition == "snowy-rainy") image = id(icon_snowy_rainy);
^
/config/esphome/lilygo-weather-display.yaml:261:44: error: expected primary-expression before '=' token
else if (condition == "sunny") image = id(icon_sunny);
^
/config/esphome/lilygo-weather-display.yaml:262:44: error: expected primary-expression before '=' token
else if (condition == "windy") image = id(icon_windy);
^
/config/esphome/lilygo-weather-display.yaml:263:17: error: expected primary-expression before '!=' token
if (image != NULL)
^~
/config/esphome/lilygo-weather-display.yaml:265:30: error: expected primary-expression before ')' token
it.image(0, 38, image);
^
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/FileSupport.cpp.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib01c/libFS.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/OpenFontRender.cpp.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/basepic.c.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftadvanc.c.o
Archiving /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/libc1a/libSPIFFS.a
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftapi.c.o
Compiling /data/lilygo-weather-display/.pioenvs/lilygo-weather-display/lib933/OpenFontRender/base/ftbase.c.o
*** [/data/lilygo-weather-display/.pioenvs/lilygo-weather-display/src/main.cpp.o] Error 1
========================= [FAILED] Took 108.47 seconds =========================
=== [ERROR] /config/esphome/lilygo-weather-display.yaml ===
`
(of note, I had previously made some changes in the YAML for my own purposes; using my own backyard weather station as the basis for the display of the current temperature - so line 246 is actually line 236 in the original YAML). These changes had no bearing on this issue.
Regardless, the fix for the issue described above is as follows:
line 236 in the original YAML which reads:
needs to be changed to:
Once done, it compiles and updates ok.
Hope this helps, and thanks again for this project!
The text was updated successfully, but these errors were encountered: