Shelly with bathroom timer switch for fan?

My bathroom fan is currently just a toggle switch. I have some extra Shelly 1 UL relays and I think I would like to wire the switch into Home Assistant to potentially add a humidity sensor down the road. But I also want a simple timer switch such as this one. .

Would this play nicely with the Shelly? I assume when the Shelly activates the switch, it would turn on to the previously set time similar to a manual tap of the button. I’m curious if the Shelly can also activate a button hold to do a manual on without timer. Has anyone had success with similar timer switches? What would the wiring diagram look like for it and the Shelly?