feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Support for SD-Card as data sink

Open pfichtner opened this issue 6 years ago • 16 comments

Describe the problem you have/What new integration you would like

I'd like to create a standalone sensor (no WiFi available) that persists the sensor values read to a connected sd-card.

Please describe your use case for this integration and alternatives you've tried:

There is no support in esphome for writing values to SD-cards so nothing tried yet. Is this a scenario you'd like to support? As far as I see esphome seems to support only mqtt for now.

Additional context

pfichtner avatar Nov 30 '19 16:11 pfichtner

@pfichtner try https://github.com/xoseperez/espurna or https://github.com/letscontrolit/ESPEasy. I think ESPHome should stay as simple as possible and do one thing well - communicate with Home Assistant. Data logging should be done there

Misiu avatar Dec 02 '19 14:12 Misiu

@Misiu I know my opinion on this has probably changed a bit over time. But I do think this is a valid use-case - having a constant connection to devices is not always possible (and does tend to require a lot of energy).

There's currently not great support for standalone devices, even though they could be great for quick data gathering in remote locations.

I'm not saying I will implement it - SD could be semi-hard to do depending on the filesystem APIs (haven't tried those yet). But if someone creates a good, clean implementation of SD card as a data sink for sensors for example, I'd be ok with merging it.

OttoWinter avatar Dec 04 '19 10:12 OttoWinter

Hi. I would like to have a SD card option. Looking forward for this solution one day ;-)

lennert1986 avatar Mar 29 '20 09:03 lennert1986

+1'ing this, specifically for ESP32-CAMs with microSD card slots

TheGroundZero avatar Apr 17 '21 19:04 TheGroundZero

+1, some of my sensors have connection to home assistant just couple of times a day, it would be great if ESP-Home could cache events to sd card, then upload them to home assistant when connection is restored.

kotyara75 avatar Oct 03 '21 06:10 kotyara75

same here

mincaeuro avatar Apr 08 '22 12:04 mincaeuro

I have a sensor in my 4WD that monitors the Auxiliary Battery. It currently saves data to an SD card and can display that on a WWW page when it is connected to my Home Network. Is there a way to integrate it into ESPhome ?

dbuggz avatar Apr 11 '22 23:04 dbuggz

Also see https://github.com/esphome/feature-requests/issues/1560

nagyrobi avatar Jul 08 '22 13:07 nagyrobi

Is there any news on this? It would be great if you could save to an SD card instead of the internal memory. I just made a gas meter, which would have to save its value quite often.

langfeld avatar Sep 20 '22 10:09 langfeld

+1 would need also meter data

bf8392 avatar May 02 '23 14:05 bf8392

+1 woudl be great - especially for example, for esp32-cam where 2.5g wifi can get pretty congested at times - especially if there are multiple feeds which currently have to be monitored from server rather than on-board.

adamlove86 avatar Aug 18 '23 03:08 adamlove86

I would like to play MP3 files stored on an SD card through the media_player component of esphome.

michaelsteinmann avatar Aug 29 '23 14:08 michaelsteinmann

I have a use case for this too.

Gas Meter connected to esp. If power to esp is cut(not to whole house) and gas is in use then i have no way of knowing what the usage was in that period without manual reset of data. Battery backup + SD support would allow logging of data during that period and would enable the data to be logged on reconnect.

ryanm101 avatar Oct 30 '23 09:10 ryanm101

Following, I have a SC-EN-I6-RO4 DIN mount ESP32 that awaits microSD card support.

ptr727 avatar Nov 17 '23 05:11 ptr727

Following. I just had an idea of turning JBM BMS with Esphome into Black Box for lithium ion battery. So it would need to store all the data of how it was used and then syncing it with home assistant when available. Ofcourse offline data would need to be stored meanwhile on SD card.

Maybe eeprom memory could be used as saving details of the battery in case of emergency and then the previous records could be used along these. So maybe Flash memory and eeprom could do, if data logging is restricted to certain limits and only storing big changes? Depends on how much data there is flowing.

Larsuu avatar Nov 19 '23 20:11 Larsuu

Would bei a nice Feature. Any News?

RrPt avatar Mar 14 '24 06:03 RrPt

Please see https://github.com/esphome/esphome/pull/6071 which provides external storage to a I2C eeprom which would address some of the use cases identified in feature request

pebblebed-tech avatar Mar 28 '24 17:03 pebblebed-tech

Would bei a nice Feature. Any News?

Talkin about my idea?

i did go more in-depth about it here.( https://github.com/syssi/esphome-jbd-bms/discussions/66 ) But, it's just an idea. Currently, I don't have any time for this idea. I could pull it into my project as an add-on if possible.

Larsuu avatar Apr 04 '24 11:04 Larsuu