MAP not working

Hi all

I have a problem with the map transformation withing an item.
I want to convert the MQTT incoming payload (string) ‘TRUE’ to ‘ON’.
I’ve created a mapping for this, but when the message arrives, the log outputs:

[WARN ] [orm.AbstractFileTransformationService] - Could not transform ‘TRUE’ with the file ‘bool.map’ : Target value not found in map for ‘TRUE’

In my bool.map there is the following content:

TRUE=ON
FALSE=OFF
ON=TRUE
OFF=FALSE

my items file has the following item (that triggers the map)

Switch switchTestStatus "testswitch" {mqtt="<[goldeneye:OpenHAB/bureel/licht/kringA:command:MAP(bool.map)]"}

What am I dooing wrong?

Your binding config is incorrect:

Switch switchTestStatus "testswitch" {mqtt="<[goldeneye:OpenHAB/bureel/licht/kringA:state:MAP(bool.map)]"}