Help With item configuration

Dear Forum,

I am trying to make my own mqtt heat recovery fan controller. What i want to do to have 2 items in openhab. One is the Speed(this is simple) and one is the operating mode which i can’t figure out how to do it even after reading some examples:

I want an item which lets me select between 4 values : Exhaust, Supply, Recover, Stop.

To be more clear i have an example from my door lock

Would someone please be so kind to help me out?
i have openhab4 do i need to declare the item using code or can i just do it via the web interface.

Try a string item with Metadata - command options…

1 Like

Thanks Sebastian! It was so simple