Tuya scene switch Zigbee2mqtt automation set state

I have a TS0044 scene switch. I got it set up and made a simple automation. When button x is pressed send notification.
I also have a smart washer that sends an “End of Cycle”. I made a simple automation that sends a notification at end of cycle.
I want to combine them, but I know the button press is a right now thing and the end of cycle would be in an hour or so. I think I would need the button press to temporarily set a state/variable than can be combined with the end of cycle. Then clear when notification is sent. I’m still failry new to HA and just have some simple automations right now. I found some stuff about creating helpers but they all seemed to use a UI button and not a button from a physical switch press. Could someone point me in the right direction? Thanks