loadState to restoreFromDeviceInfos and saveState to applyToDeviceInfos