Where the relay switch is should be a magnetic rotary ratchet electric switch. It is like a lamp switch you keep turning the same direction with the lamp doing ON and OFF cycles repeatedly. Think of that switch electrically turned one step when you push one 24 volt push button below.
I did not find this motor rotary switch on Internet but an alarm company might be a supplier.
Stringing one 24 volt line with push button switches grounded gives high numbers of control switches of yard lamp or many safety shut offs devices could be done.