Aims.We investigate electron temperature (Te) and gas-phase oxygen abundance (ZTe) measurements for galaxies in the local Universe (z < 0.25). Our sample comprises spectra from a total of 264 emission-line systems, ranging from individual HIIregions to whole galaxies, including 23 composite HIIregions from star-forming main sequence galaxies in the MaNGA survey.Methods.We utilise 130 of these systems with directly measurableTe(OII) to calibrate a new metallicity-dependentTe(OIII)–Te(OII) relation that provides a better representation of our varied dataset than existing relations from the literature. We also provide an alternativeTe(OIII)–Te(NII) calibration. This newTemethod is then used to obtain accurateZTeestimates and form the mass – metallicity relation (MZR) for a sample of 118 local galaxies.Results.We find that all theTe(OIII)–Te(OII) relations considered here systematically under-estimateZTefor low-ionisation systems by up to 0.6 dex. We determine that this is due to such systems having an intrinsically higher O+abundance than O++abundance, renderingZTeestimates based only on [OIII] lines inaccurate. We therefore provide an empirical correction based on strong emission lines to account for this bias when using our newTe(OIII)–Te(OIII) andTe(OIII)–Te(NII) relations. This allows for accurate metallicities (1σ = 0.08 dex) to be derived for any low-redshift system with an [OIII]λ4363 detection, regardless of its physical size or ionisation state. The MZR formed from our dataset is in very good agreement with those formed from direct measurements of metal recombination lines and blue supergiant absorption lines, in contrast to most otherTe-based and strong-line-based MZRs. Our newTemethod therefore provides an accurate and precise way of obtainingZTefor a large and diverse range of star-forming systems in the local Universe.