Help . timer and reset via mqtt

Hello. I want create 2 minute timer in home assistant, which will send notification to mobile app after time expired and then restart again.
Also i want this timer reset and start again if it receive mqtt command from mqtt client.
Anyone have some example code for such ? Thanks