We have no idea about your electro-mechanical requirements.
except there is a uC , 230V 6A motor, a window and a limit switch.
Normally when someone has no idea, we try to get them list all the requirements relevant to the problem.
Inputs, Ouputs, process, resources, protection
There are current transformers used for AC detection and protection , Hall sensors and active current sensors used in cars.
But we have no idea on start surge current = "locked rotor current" and this will be the same for an abrupt start or stop except the duration, which depends on mass for starting and stop for trip period etc.