With state changes, you can use a “from” as well as a “to”. You can see an example here:
I watch for when my Squeezebox’s state switches to playing from idle or off.