Skip to content

Allow VOC/NOx/CO2 offset recovery #367

Description

@wangwillian0

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions