Magnetic Latching relay? or not

are nice because they do not require continuous power to hold state.

Both single coil and dual coil are easy to use. Without extra circuitry beyond the always-necessary driving transistors or MOSFETs.

Both types, using just the driver transistor(s), would need two output pins.

With a two coil relay, each coil uses a regular MOSFET or transistor circuit.

For one coil, this ugly circuit will work, but you can do better at the expense of a few more parts.

latching Relay-5

Latching relays need a certain pulse width to reliably switch. With the circuit I posted, it would be best to keep the energized time to just that short, typically 5 milliseconds or so.

a7