All values except those that have the name “temperature” and “humidity” are stored only for 7 days in the database. If you want to have longer history you have to edit the config.json. This is especially visible when you use dummy devices in your dashboard.
This in my database section:
"deviceAttributeLogging": [
{
"deviceId": "*",
"attributeName": "*",
"type": "*",
"interval": "0",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "*",
"type": "continuous",
"interval": "5min",
"expire": "7d"
},
{
"deviceId": "*",
"attributeName": "temperature",
"type": "number",
"expire": "1y"
},
{
"deviceId": "*",
"attributeName": "humidity",
"type": "number",
"expire": "1y"
},
{
"deviceId": "sys_battvolt_mys-all",
"attributeName": "*",
"type": "number",
"interval": "3h",
"expire": "3y"
},
{
"deviceId": "gui_tool_network-upsinfo",
"attributeName": "*",
"type": "number",
"expire": "1y"
},
{
"deviceId": "gui_clima_outside-actual",
"attributeName": "*",
"type": "*",
"expire": "3y"
},
{
"deviceId": "gui_clima_sun",
"attributeName": "average",
"type": "number",
"expire": "30d"
},
{
"deviceId": "gui_clima_kitchen-fridge",
"attributeName": "source",
"type": "number",
"expire": "1y"
}
]
Hope this helps.