I made a diagram it’s easier for me Here is my current wiring
Are you suggesting something like this?
I wonder if the 24 v is not cut once the pin stops