Custom states value reset

Can set up the conditional trigger of do every 5 seconds and change the interval to 1 second and from that trigger you can set the custom state value again.

You should also check out this post of updating a api call value