Sorry that happened.
1. I think you are within your rights to request a FOIA and find out the complaint. If the neighbor alleged you were doing something illegal you might have a case for filing a false report;
2. You did not need to give police your ID fercryinoutloud. They came to your HOUSE! You're teaching cops they can demand ID - there's no stop and identify law without suspicion of a crime;
3. The LEO had no right to demand anything - on your property. You could have just told him to go away. Don't teach these cops they can come onto private property uninvited, please.
Glad you weren't injured or taken downtown on a trumped up charge.