Hello,
i like to change the samples which are stored for a VariablesDevice in the database.
I have following VariablesDevice
{
"variables": [
{
"name": "Außentemperatur",
"expression": "$heizung_outdoortemperature",
"type": "number",
"unit": "°C",
"expire": "1y"
}
],
"xAttributeOptions": [],
"id": "auentemperatur",
"name": "Außentemperatur",
"class": "VariablesDevice"
}
This variabledevice will be updated every 5 minute by an external script running the following command
curl --silent \
-X PATCH \
--header "Content-Type:application/json" \
--data '{"type": "value", "valueOrExpression": '$outdoortemperature'}' \
--user "api:xxxx" \
http://192.168.0.11/api/variables/heizung_outdoortemperature
I already added
"expire": "1y"
to the config but the database config point still shows:
“auentemperatur,Außentemperatur,number (continuous),5min,7d,1014”
Also the graph shows only past 7days.
How can i change the recording timeframe to 1year?
Thank you!