Reminds me of The White Mountains by John Christopher
Dang, I was just thinking about that series this morning!
Christopher later wrote a prequel, When The Tripods Came. It details how the Masters were able to take over the planet, their use of television and hypnotizing people into turning themselves in for the "caps" that made them docile and incapable of thinking for themselves.
Hmmmm...