Force ESPHome to Update Device Firmware

Hi,

i’m currently working on a little Project, displaying a daily changing Image on a Epaper Display.

The Image file is located at /config/www and will change daily.

So now my Problem is, how to get my ESP32 to update this Image daily?
When i change the config file, it will create the Firmware with the image currently available but it will not change the image tomorrow.

So I thought if there is a Way to create an Automation which will recreates the firmware on a daily basis and pushes it to the ESP.

My first Idea was an Automation like this:

action: update.install
target:
entity_id: update.epaper_firmware
data: {}

But that will fail because there is no Update available.

Any Ideas how I could solve this problem?

Best regards,
Robin

You could use the new online_image ESPHome component to update the image on the ESP32 instead of rebuilding the firmware.

Yes, use Online Image Component — ESPHome

No need to recompile.

Great, that worked :slight_smile:
Unfortunately the Image which was white before becomes now black when using the online_image component but thats another Issue.

You probably need to change the image type. The default is binary which is unlikely to be what you want.

I already tried the different types. Binary, Transparent_Binary and Greyscale, none of them worked.

It’s strange because it is the same Image file just from another source.

With the image component it is type binary.