title: CFE-ConfigValidator-13: Cannot convert value to boolean
CFE-ConfigValidator-13: Cannot convert value to boolean
This error occurs when MPF expects a boolean value (i.e.
false) for a config setting but got a value of a different type.
For instance, the
debug setting for a
switch is a boolean:
switches: s_flipper_left: number: 1 debug: true # we want all the details about this switch in the logs
You can see which settings are boolean in the config reference of your device.
Widget Animations Repeat
In MPF versions before 0.53
repeat in widgets has been an integer
which has been converted to boolean internally. A lot of examples (and
the tutorial) contained
repeat: -1. You need to change this to
repeat: false to fix this error.
If you use
debug: "false" (with quotes around
false) MPF will not
false as a boolean but as a string. Remove the quotes to fix
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