How to save the battery status of lightning capacitor