MQTT commandTopic with Parameter

I want to create some Push buttons to send a mqtt command with parameter.
How can I do it?
e.g. Type switch : PushButton [
For the commandTopic I have to send also the parameter 5 to get the right STATUS information.

Create a string item

Then in sitemap

Switch item=ITEMNAME  mappings=["5"="TEXT VALUE"]

In rule


Thanks for this input. I tried it and now I found an easier way. I don’t know why it didn’t work yesterday, but here is the solution.
Type string : StatusX “status” [ commandTopic=“cmnd/tasmota1/Status” ]
String StatusX {channel=“mqtt:topic:mosquitto:Steckdose:StatusX”}
Switch item=StatusX mappings=[“1”=“Status 1”, “3”=“Status 3”, “5”=“Status 5”]

When you click on Button Status1 a parameter of 1 is used by the commandTopic, and so on.

But still there was something strange going on. I tried the same example but changed the name StatusX to Status and it doesn’t work anymore. I found out that I used the item Status before and the value was stored in my persistence mapdb.
After deleting the db and restarting openHAB everything works fine.