Abstract A Fabry-Pérot (FP) sensor for simultaneous measurement of refractive index and temperature of an all-fiber synchronous liquid based on the Vernier effect is proposed, special application for internal monitoring of lithium-ion battery electrolytes. The theoretical model of high sensitivity cascade Fabry-Pérot interferometer (PFPI) is established, the sensitivity amplification mechanism of PFPI is analyzed in detail, the perfect matching scheme for measuring the refractive index of the electrolyte inside the battery is designed according to the matching conditions of the optical path, and the corresponding sensors for simultaneous measurement of the temperature and the refractive index are fabricated. The experimental results show that the sensor has a maximum refractive index sensitivity of 15391.5033 nm/RIU, a good linear fit, and can effectively monitor the refractive index change of the electrolyte by 10-4 orders of magnitude during normal charging and discharging of lithium-ion batteries. Compared to traditional epoxy adhesive bonded or laser processed FP sensors, this all-fibre optic structure not only improves temperature and corrosion resistance, but also significantly reduces temperature cross-sensitivity. Its small size and excellent resistance to high temperature and corrosion ensure the sensor's excellent response and broad application prospects in monitoring the refractive index of the electrolyte in 18650 lithium-ion batteries, which provides effective technical support for monitoring the health status of batteries and detecting early safety issues.