Add entity storage type 'cache memory only'

Hello.

For entity parameter propose add new option storage type: cache only (ephemeral memory) for keep and display only last update state and parallel not save to DB state of the entity. No history but enabled. As far I know is not possible to achieve it in HA now.

For example I have entity:

sensor.data_not_important_to_save_to_db_but_nice_to_display

where data arrive from some source (eg. from MQTT integration) and the value of the entity will be keep in cache memory only and parallel no save into DB (in the DB keep only definition of DB to have it after restart DB).

The background of the request is reduce DB size and R/W operation on the file system and at the same time allow display current value only of the entity (but not from history as empty).

BR, Krzysiek

You can do this with recorder

It’s the integration that manages what’s stored in your database.

1 Like