I have electric rollershutters with wireless from somfy like these:
The remote has three buttons up, down and my. The my key can stop the shutters when they move and move them to e pre stored position.
Can I mimic this kind of controller somehow in openhab?
A normal switch will not do as it only has two positions.
There’s the ‘rollershutter’ item type that shows up in GUI as three buttons (up, X, down).
For the additional ‘last position’ command, you could add another switch, or overload the standard function (i.e. STOP) of the X button function using rules (i.e. if pressed then if shutters are NOT currently moving, send last position command, else send STOP).