How to automatically cut off the power of solar cells