There are several ways to do it. This
bistable relay is the kind of relay that is used in a car to switch between high- and low-beam headlights. 12 Volts DC.
Or, you could use an individual icm code and relay wired to latch on its own contacts, for each control function, and another code to drop the relay. For instance, code "5" makes a relay latch, and code "25" makes it fall. You just need a simple relay with at least two form C contacts,
Alltronix alarm relays can use 6, 12 or 24 Volts DC.