GO:0097272: ammonia homeostasis
Any biological process involved in the maintenance of an internal steady state of ammonia.