Zigbee command to run fan with timer

I did this and got relatively close to what I’m desiring, but with some quirks. It’s also a decently complicated automation that would be greatly simplified by using the functionality that’s already on the switch for timing—I just need a way to invoke it.

That’s really all I need. Just a way to trigger the same function that’s running on the switch, but via a Zigbee command instead of being triggered on-device. I’m sure memory is limited, but I can’t imagine there’d be much additional code to accept a single command and map it to existing functionality. (Of course, I’m just speculating.)

But more to the point, would it be worthwhile to others and easy enough to be worth implementing?