I’m working on an info display/warning sign using ESPHome to drive an LCD display for my workshop door that will be able to warn people to not enter or to use safety glasses or wait for an “Okay” sign to come into the shop.
I’ve been reading up on using LVGL within ESPHome and I have a number of concerns about whether I can do this with ESPHome. Part of this is that, as with much of what can be done in a YAML file, so much seems to focus on everything being loaded or setup at boot, without the ability to make changes later. For instance, if I want to change the URL for an Online Image, I’m not clear if I can do that and load the new image instead.
1 - I’ve been reading about ESPHome Images and Online Images and I’m not clear if the images are loaded at boot or loaded later, as needed to put on the display. I’m concerned about trying to load too many images in an ESP32 on boot. I also want to be able to change the configuration and not have to reboot. Can images be loaded when needed, then cleared to make room for a new image? I did see a reference to being able to clear out an image, but I’m still a bit confused.
2 - If I get input from Home Assistant (or the ESPHome webserver), can I change the URL for an image while ESPHome is running?
3 - What do I need to do with LVGL to wipe the old image off the display and show the new one? I’ve seen comments and references about not using image refresh functions, but I suspect I may be mis-reading that information.
4 - I don’t see any way to add more images after compile time. It looks like I have to decide how many images the system will use and can’t change it. For instance, with some data types, I can add more items to the structure while it’s running. It looks like I’m going to have to define, in the YAML file, how many Images or Online Images I’m going to use and stick to it - so if I include 4 Online Images in the YAML file from the start, unless I recompile, there’s no way to add another one.
5 - I can’t find, in the LVGL, any documentation about making the screen, a widget, or text, flash or blink on the display. Is that possible?
7 - While it’s not an LVGL question, this is one of the issues I’m trying to work out: Does the URL for an Online Image have to be http or https? Could I use an image on a Samba share, so I’m using smb:// instead of http:// for an image URL?