How to add Power Mechanic to Doors When Used

When I close a door, I want a progression bar to count down for every frame that it is opened, and then causes the door to shut down momentarily after being down for too long.

I already have the door blueprint, but do I need to connect the blueprint to a progression bar widget or is there a simpler way to do this? ChatGPT is giving me the most headache inducing breakdowns