title: CFE-ConfigValidator-6: Device not found in section in your config
This error occurs when MPF does not find a device which is referenced by one of your settings in your config.
For instance, a flipper device references a switch and a coil:
You can see to which type of device a setting references in the
config reference of your
device. For this instance, check the
flipper config reference and you will find that
main_coil references a
activation_switch references a
The most common source for this kind of error are typos. Check the name of your referenced device with the setting. Casing matters here (i.e. upper/lower case). Using an IDE with the MPF language server can help here.
Copy and Paste
We all do this and there is nothing wrong with copying configs from the docs. Almost all examples in the docs are tested and should not give this kind of error. However, sometimes we hide certain devices in the docs (i.e. switches and coils which are referenced by an examplary flipper device as above). This is done to improve readability but when copying those examples you might get this error. Nevertheless, you can click "Click to show full config" below all examples to see the full tested example which is tested to work in the MPF version corresponding to the docs.
Running Config from a different MPF Version
Sometimes MPF config specifications change. Check if your MPF version fits the config. If in doubt check the config reference for your device.
Referencing a different type of device
Need more help troubleshooting?
Have a look at our Troubleshooting section. It might give you some hints for certain classes of problems.
What if this did not fix your problem?
Is something missing here? Do you have a helpful hint for others experiencing this error?
Related How To guides
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results