If the air conditioning system is not working, there is often a lack of refrigerant. Leak detection is possible with forming gas, UV-Lorke or a little spit.
Snorkel out the entire air conditioning system and reseal it? The cable for the magnetic switch could also be faulty…