Going in and out w/o cause is one of two faults.
#1 with a magnet is the door switch
#2 is the controller
To test the door switch,, Sit outside at night, observe the step light (The lamp that is under the coach) It tracks the door switch, Light on door open.
Now, there are two different controllers.. ONE of the m the switch tracks the door (Door closed, switch closed) and the other it reflects the door (Door open switch closed)
A broken wire, loose wire or poor connection on that wire will cause the same action, it will appear to the controller as the door opening and closing.
KILL power to the steps so they do not move
Unplug and re-connect, at least 3 times, all connections to the step controller under the first "Fixed" step on the coach.
Home is where I park it!