You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The database plugin should drop in here to remove cache: True attribute thus the item is changed to:
Solltemperatur:
type: num
database: init
database_maxage: 7
In case there is not much of change - let's assume no change for the last 14 days, then the attribute database_maxage: 7 will ensure that all data for this item is removed after 7 days.
But when restarting SmartHomeNG after 7 days, this will lead to a missing init value for the item since all database entries are already deleted.
A fix should be provided that ensures that at least the last data entry to the database is kept to provide an init value for a later restart of SmartHomeNG
The text was updated successfully, but these errors were encountered:
msinn
changed the title
database plugin: database_maxage might remove all stored values from item
database: database_maxage might remove all stored values from item
Aug 29, 2023
Tested the implementations made in the database plugin (tested with V1.10 although the adaptations were made longtime before). Issue is fixed. Ticket can be closed.
Consider the following item:
The database plugin should drop in here to remove
cache: True
attribute thus the item is changed to:In case there is not much of change - let's assume no change for the last 14 days, then the attribute
database_maxage: 7
will ensure that all data for this item is removed after 7 days.But when restarting SmartHomeNG after 7 days, this will lead to a missing init value for the item since all database entries are already deleted.
A fix should be provided that ensures that at least the last data entry to the database is kept to provide an init value for a later restart of SmartHomeNG
The text was updated successfully, but these errors were encountered: