Hi, one idea could be to use tags but it implies to handle them externally in the case of changes. For example you will tie all configuration presets to the presence of a tag, for example “latest”. The “latest” tag will be added by the firmware upgrade provision or by a single present that compares the SoftwareVersion with the one you want, like “6.48” and adds the “latest” tag. This way if a new version arrives, you do this steps:
- change the preset that adds the “latest” tag to the new version: “6.49”
- remove the latest tag from all devices (have to be done externally, either by calling the API for each device or directly in mongo, see this thread)