Trigger python script when woke, finished recording, or error?

Rhasspy plays wav files when it wakes, has finished recording, and encounters an error. Is it possible to have Rhasspy trigger python scripts also when these happen? I would like to use matrix-lite python scripts to control the leds on my matrix voice. Thanks.