Intercepting Alexa/haaska

I’d like to know if there is a way to intercept a command coming from Alexa trough haaska.
For example when a light is turned on or off from Alexa.