Integrating Weather Station with Local Data Storage

Hi everyone, I’m working on setting up an outdoor weather station using an ESP device with ESPHome. The station runs on a battery and solar panel, and it communicates with my Home Assistant system via Wi-Fi. While this setup works well when the power is on, I’m concerned about what happens during power outages, which are common in my area due to overhead power lines. During these outages, I want the weather station to continue collecting data locally and send it to my HA system once the Wi-Fi connection is restored.

I have two main questions:

  1. Will Home Assistant accept data with timestamps from the past, ensuring the history remains accurate?
  2. How can I configure ESPHome to store these values locally? I know I can use the ESP’s flash memory, but I’m worried about wear and tear. Is there a way to use an SD card for storage instead?

I’ve explored the ESPHome documentation but haven’t found a storage component like the one in ESPEasy. Any insights or suggestions would be greatly appreciated! Thanks in advance for your help. :wink: