Roger Mills, of East Grinstead, West Sussex, had worked for the council for 14 years and had a spotless record. But his council employer thought he was skiving, and hired private detectives to spy on him.
After four months of surveillance, he was sacked for gross misconduct after spending time at home during work hours.
However, Mills had a long-standing arrangement allowing him to work from home.
Last night, Mills said: 'I have had two years of hell. I'm obviously delighted by the outcome.'