Automatic detection of consumables