Mqtt, binding, things and transformation

I suppose what would be helpful for giving any useful advice is seeing what your channel definition(s) look like now, and what your map file(s) look like now.
You might need to explain what you would like to happen with your “different codes”.

I think you are re-inventing this wheel