Reset simulation

Hello
What should I do to reset my custom attribute to zero during reset, as it will gradually increase during simulation

with a PythonScript and def OnReset(): ?

Thank you very much!