Homeostasis maintenance of encapsulated cells