Looks like you are doing something wrong in HomeAssistant which is sending the request multiple times. Since I've never used HomeAssistant I can't tell you much more than that.
How many times is the event being sent per click?
If you are using a command line tool anyway you could always switch to using udpSender instead of curl, or is this running in a non-Windows system?