Best Way to Automate Master Exhaust/Ventilation Switch?

My house has this “master” ventilation switch which turns on (overrides) 2 washroom exhausts (1 on main floor and 1 on 2nd floor) as well as the house vent fan. I’m looking for a way to automate this switch.

I opened the switch and it has total 4 wires (2 black on one side and 2 white on the other). I can’t figure it out if its a 4 way switch or not except its overriding the stuff above.

Does anyone know how to handle this? What’s the best smart switch for this config?

What do the other switches look like?