A state of emergency was declared in Santa Barbara County and about 5,400 homes were evacuated in Montecito , a town of 14,000 where Los Angeles-weary celebrities rub shoulders with friendly locals who have lived there for years .