Phosphors with optimized luminescence properties for white-LEDs applications are the subject of very active research [1]. Still, a detailed theoretical understanding of their electronic and temperature-dependent properties is lacking. A striking example is given by the two chemically close oxynitride materials, Ba3Si6O12N2:Eu2+ and Ba3Si6O9N4:Eu2+ : the host materials have very similar electronic and structural properties [2] but Eu doping leads to different luminescence properties and temperature behaviour. The green phosphor Ba3Si6O12N2:Eu2+ [3] has weak thermal quenching at working temperature (around 100 °C), while Ba3Si6O9N4:Eu2+ is a bluish-green phosphor that exhibits an unfavourable decrease of the luminescence intensity with temperature. Luminescent properties of such rare-earth doped compounds are based upon radiative transition between 5d and 4f electronic states of the dopant. We propose a scheme for the computation of the excited states in such phosphors that allows to identify and study active luminescent centres and to shed light on their temperature-dependent behaviour. This scheme is based on the Δ-SCF methodology, coupled to a stabilization of the created hole in the 4f electronic state. We find that in both cases there is only one active luminescent centre, despite the existence of several doping sites. This explains the narrow and well-resolved emission peaks for the two BSON compounds (with a full width at half maximum of 50 nm or less) [4]. The relaxation of the Eu doped excited state is of crucial importance as there are major changes in the electronic bandstructure due to Stokes shifts. We also confirm the Dorenbos energy transfer model [5]: the gap between 5d state and conduction band is 0.2 eV larger in Ba3Si6O12N2:Eu2+ than inBa3Si6O9N4:Eu2+. [1] W. M. Yen, S. Shionoya, and H. Yamamoto, CRC Press (2007) [2] B. Bertrand et al, Phys. Rev. B, 88, 075136 (2013) [3] M. Mikami et al, Key Engineering Material, 403, 11 (2009) [4] M. Mikami, Optical Materials, 35, 1958 (2013) [5] E. van der Kolk, P. Dorenbos and C. W. E. van Eijk, Optics Communications, 197, 317 (2001)