We have fabricated Sm3+ doped glasses, CsPb(Br/Cl)3 quantum dots (QDs) glasses and CsPb(Br/Cl)3-Sm3+ codoped glasses by melt-quenching and subsequent heat treatment for optical temperature sensing. Photoluminescence (PL), photoluminescence excitation (PLE) spectra and PL decay have been measured. Two CsPb(Br/Cl)3-Sm3+ samples with different PL peaks of QDs at 486 nm and 503 nm have been studied for fluorescence intensity ratio (FIR) and chromatic coordinate sensing. The CsPb(Br/Cl)3 QDs and Sm3+ ions exhibit distinguished spectral components and they are dynamically independent. PL intensity of QDs rapidly decreases with temperature, whereas PL intensity of Sm3+ slowly decreases with temperature. PL intensity of Sm3+ ions and CsPb(Cl/Br)3 QDs have been independently fitted. Then, FIR sensing has been studied. The different variation in PL intensity with temperature for Sm3+ and CsPb(Cl/Br)3 leads to the change of luminescent color and chromatic coordinate. The chromatic coordinate sensing has also been studied. Absolute sensitivity (Sa) and relative sensitivity (Sr) have been analyzed for both FIR and chromatic coordinate sensing. Compared with the chromatic coordinate mode, FIR mode has the larger Sa and Sr. But the chromatic coordinate method is more convenient for application, which does not require separating two spectral components. Both FIR and chromatic coordinate sensing modes show outstanding temperature cycling characteristics.