Thank you all very much for the prompt responses!
Condor's built-in power management looks interesting, but if I'm not mistaken this is about hibernation rather than fully powering down/up a machine, correct? What I'm working on currently uses an IPMI/redfish interface to obtain and change the power state of the machine. This allows us to have some more fine-tailored decision making processes to determine what machines will be turned on when, and what for. Having access to information about when a dynamic slot was last created or destroyed would therefore be absolutely fantastic, and most certainly a feature I'm patiently awaiting.
In the interim, the most optimal solution indeed seems to be to get the tool to remember when it last saw dynamic slots for a machine, as the maximum idle time before shutdown should be flexible (based on other data we have collected, and possibly different per machine, or based on how many machines are currently on and idle). Ideally I'd want the tool to be as hands-off as possible and base its decision to change a machine's power state entirely on machine ClassAd data.
Again, thank you very much for the responses, it is really appreciated.
- Niels