If the widget provides you with the ability of running a microflow when the counter is complete, then you need to set button visibility based on your context entity’s attributes, and update those in the Mf running when the counter is done. Make sure to refresh in client.
Hope this helps
What could be a solution is to add conditional visibility, based on expression.
There you add the logic: Entity/Value <Threshold