After the incident I re-locked the front door, and then left the house (I had many errands to take care of). I realize know that I should have called the police right away to file a report. The report would serve to document the trespassing incident.
A formal letter sent by certified mail quoting the relevant California Civil Code section, and including the text Perry suggests should be enough to convey the seriousness of the situation.