ESPEasy with multiple states


I have a Espeasy unit which can communicate with my fan.
This fan has four different states.
With Mosquito i can change the state with the following command:" ESP_ITHO/Fan/cmd State X " where X can be 1 to 4.
Somehow i can’t get it to work with OH so that the unit receives the commands.

How can i put this in a things file the correct way?

Create the thing in PaperUI and place the item in files. PaperUI will give the correct syntax for the item channel.