MOES curtain module, how to calibrate

Hi,
I am a beginner with HA. I just installed HA as docker image onto my raspberry 4B, which also runs my local KODI installation.

Now I got a MOES curtain module to control my window shutter.

This works just fine. I implemented a 4 way switch (for two MOES) to
a) stop any movement when a button is pressed and the shutter is already traveling
b) else roll up or down depending which button pressed

BUT: after having rebooted the server, something lost track of the shutter position. It just didn’t roll up more than 1/3.
I couldn’t fine any setting in HA and I cannot find any procedure to calibrate position/end for the MOES.

Now I have two questions:

  • who is responsible for tracking the position HA or MOES?
  • how do I re-calibrate the position?

thank you very much.

PS. is there any recommended relay for my application?

PPS. it identifes as TS130F but obviously it’s a relay not a wall switch.

Are there different devices under the same ID?

I found a solution