OK, I see I'm rather late to this party but this may be helpful to somone.
I'm playing with the pre-beta2 version of @kevin's MQTT app/driver ([BETA] MQTT app) and looking forward to a non-beta release for several uses. This app is publishing all events (at this time) to a mosquitto (not a typo, really is spelled that way) MQTT broker on a Linux box. It is simple to write an MQTT client, even in a bash script, to send email or take any action you like when an event of your choosing comes out of HE via the broker. But wait, there's more! @kevin's app is bidirectional so you can also have any system in your control send events into HE as well.
If this sounds too complex trust me, it isn't. I'd never heard of MQTT 3 weeks ago and was able to get all the pieces in place in an evening, including educating myself on the topic. There are many code examples in bash, python, C, C++, COBOL. OK, kidding on COBOL but you get the idea.