Nickel Iron batteries are not perpetual motion machines, but they're pretty much the closest we've come. They'll last 30 years in daily multiple cycle applications and at the end of 30 years you change out the electrolyte and they're good for another 30 years. The downsides are very poor Wh/kg, low Wh/L, and fairly poor round trip efficiency (80% when new dropping to only 50% at the end of that 30 year life). For stationary applications they're a very real consideration since they don't need a charge controller and along with very cheap solar panels you've got a way to make and store lots of power cheaply, add an appropriate inverter and done. But for RV applications they're worthless.