Janey... Glad for the magic moment with your battery problem. The E02 code, I assume was from the inverter or Charger (Xantrex), whatever your coach is configured with. This is what that trouble code means:
E02 High battery voltage
shutdown
(> 15.5 Vdc)
Inverting • Check for external charging sources, such
as an over voltage alternator, and
disconnect if necessary
As you can see, the cause was from an overvoltage condition. Since everything is working now, we can only assume it's one of those electronic flukes that caused the problem, much like why we RE-boot our computers occasionally.
Happy camping
Denny