And you can more easily use a generic
.map file to translate a state into something more human-readable. (WAF) If you use numbers, you can only have one set per file. Otherwise you could combine several in one.
If you use numbers for the state, you can use dynamic icons. For example in openHAB2 you can use the default
<washingmachine_2> icon, that has variants for 0, 1, 2, and 3.
0 = no light (OFF?)
1 = green light (FINISHED?)
2 = red light (ACTIVE?)
3 = yellow light (STANDBY?)
@ThomDietrich Looking at those icons, the values do not match your states, am I right? If so, you could perhaps change mapping of the states to match the default icon set? In that case the item definition in the tutorial could change to
Number Washingmachine_OpState "Washingmachine State [%d]" <washingmachine_2>