I’d like reduce my DB (now more than 5 GB) and I wondering (because not found in documentation) there is possibility to set storage type to cache only of entity and parallel not save to DB state?
where data arrive from some source (eg. from MQTT integration) and I want to see value of the entity only from last update and keep state in cache memory only, no save into DB (in DB keep only definition of DB to have it after restart DB). If I have fresh restarted HA then cache storage type entity will have unavailable status until receive data from source.
But I think the is no “cache memory”, either you do store states and attributes with the recorder or you don’t to that, for the latter you only have the current state and can’t display previous states.
The idea is keep current data (no history at all for the entity). In recorder I can disable it but the entity will be displayed? Not yest read documentation of recorder hence question
I’m not sure, I think you’ll see no history, neither from database nor any past values from memory since the latest HA restart. But the latest state should be available.
Using the MATCH_ALL constant does not stop recording for device_class , state_class , unit_of_measurement , and friendly_name as they might also serve other purposes and, therefore, should not be excluded from recording.