Gates and the power grid