Hi,
listening to state changes should be done in a dedicated fsm,
study the prefab "Character PlayMaker Say HI" and its fsm "Jump", it does listen tot he state coming back to idle. That's how it's currently working.
I think Mecanim is cooking some event based system to be aware of this properly, it may improve in a near future.
bye,
Jean