This is possible to be done on an iPad or iPhone shortcut using the HomeKit integration in the Shortcuts app and the delay command, but this requires your iPad/iPhone device to be at home for the shortcut to work.
I agree that the shortcuts capability is the vehicle to empower incredibly functional automations in our homes and work spaces. I was disappointed not to see more progress on this front in WWDC20.