If I understood correctly, reseting the device means losing the moving average required for the VOC and NOx indexes and losing the moving minimum required for the CO2 sensor. This becomes a problem specially if you set large learning durations.
Saving the history of the sensors is probably prohibitive because of the amount of writes to the flash, but normally the device is connected to a server (either Airgradient or homeassistant), which means we have means to retrieve the historical data and set it manually just like another configuration.
I havent dig very deep on the code, but I found https://github.com/airgradienthq/arduino/blob/master/src/Libraries/Sensirion_Gas_Index_Algorithm/src/VOCGasIndexAlgorithm.h#L53-L63, which hints a partial implementation of such feature.
Does it make sense? I can try to implement something with a little more context.
If I understood correctly, reseting the device means losing the moving average required for the VOC and NOx indexes and losing the moving minimum required for the CO2 sensor. This becomes a problem specially if you set large learning durations.
Saving the history of the sensors is probably prohibitive because of the amount of writes to the flash, but normally the device is connected to a server (either Airgradient or homeassistant), which means we have means to retrieve the historical data and set it manually just like another configuration.
I havent dig very deep on the code, but I found https://github.com/airgradienthq/arduino/blob/master/src/Libraries/Sensirion_Gas_Index_Algorithm/src/VOCGasIndexAlgorithm.h#L53-L63, which hints a partial implementation of such feature.
Does it make sense? I can try to implement something with a little more context.