Alright. The curtain motor from the Mijia smarthome store never shipped and the company never responded, so I filed a dispute with AliExpress and got my money returned. I ordered the same motor with SZHYJ store and got the motor within two weeks. I asked them to put a low customs value on the package, so they put $20,- and there was no extra customs tax before I got it.
Connecting the motor is easy. Just release the switch, put it on, and put back the switch.
After connecting the power (you need to connect your own plug, so I disassembled an unused power strip and used the cable + plug) you can add it in Homey (with the Xiaomi app installed). When connecting, you need to pres the bottom button for just over 5 seconds to match it with Homey:
It will pop up with the proper image:
It allows in the app for three positions:
When opening and closing the motor will look the first time for the maximum positions for open and close. If you somehow mess that up, there is always an option to reset the motor by removing the cover and pressing the reset button over 10 seconds:
Since I prefer to run all devices by voice I made two simple flows. One to open and one to close with the same voice command. I’ll include daylight later: