Power distribution and UPS in one solution