Paul,
For the charger to begin functioning again tells me that most likely there's a bad relay on the transfer board within the inverter.
The contacts get burned and then fail to make contact. After a few cycles they may make connection and everything works.
Clay, Arizona