We use used coffee grinds to fertilize some of our garden plants at certain times of the year. Otherwise, the grounds and filter go into the compost bin.
I don’t think that the caffeine or control of insects are the issue…it’s about maintaining the pH balance.