Hi,
unfortunatly, there is no api to give you callbacks on that kind of stuff, I wish there was some indeed, same with events, etc etc.
what you can do is create a script that checks on every update the current state of a given fsm, and you compare to a cached value, and when it changes, then that's when the fsm switched to a new state.
Bye,
Jean