How to trigger device_tracker state change only when state is changed?

Thank you for your reply.
No, it’s not what i’m looking for. The trigger in this example only hits when it’s going from a specific state to an other specific state.
I just want a trigger when state is changed from any state to any other state. With the condition: old state <> new state.