CFE-ConfigValidator-6
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.
Examples
For instance, a flipper device references a switch and a coil:
switches:
s_flipper_left:
number:
coils:
c_flipper_left:
number:
flippers:
left_flipper:
main_coil: c_flipper_left
activation_switch: s_flipper_left
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
coil and
activation_switch
references a
switch.
Common Pitfalls
Typos
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
If you reference a different device MPF won't find it and show this error. Check the config reference of your device to see which device is expected or setup your IDE with the MPF language server.
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?
Please tell us about your error in the community forum and we might be able to update this page afterwards. Or even better: You help us to update it afterwards.
Is something missing here? Do you have a helpful hint for others experiencing this error?
Please create a Pull Request and add it. Alternatively, please tell us in the community forum.
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