Added HEMv1 battery handling (from Brock)