The only thing I can think off that could be made to last basically for a very long time is a radioactive isotope battery. It could provide power for as long as the half lives allow. Usually 7 to 10 half lives before the return diminished. Some half lives are in thousands of years. Even a one hundred year half life would be near perpetual in human terms.Think a coffee can sized battery powering a led light for 700 years or more. Not a safe method but it’s the closest I can think to a power system with extreme long life.
