Home energy storage battery system trigeneration