esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
404 stars 26 forks source link

Support for SD-Card as data sink #513

Open pfichtner opened 4 years ago

pfichtner commented 4 years ago

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

Misiu commented 4 years ago

@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

OttoWinter commented 4 years ago

@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.

lennert1986 commented 4 years ago

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

TheGroundZero commented 3 years ago

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

kotyara75 commented 2 years ago

+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.

mincaeuro commented 2 years ago

same here

dbuggz commented 2 years ago

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 ?

nagyrobi commented 1 year ago

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

langfeld commented 1 year ago

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.

bf8392 commented 1 year ago

+1 would need also meter data

adamlove86 commented 10 months ago

+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.

michaelsteinmann commented 10 months ago

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

ryanm101 commented 8 months ago

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.

ptr727 commented 7 months ago

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

Larsuu commented 7 months ago

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.

RrPt commented 3 months ago

Would bei a nice Feature. Any News?

pebblebed-tech commented 3 months ago

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

Larsuu commented 3 months ago

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.