This is on the “todo” list. I’ve just not gotten around to it. I’ve been handling this through expire and my “restart expire” rule template. That rule fires on system started and updates an Item with it’s restored state. Because the rules are running at this point instead of when the Item was first restored, it kicks off the threshold alert rules in addition to restarting the expire timers.
Most of my free time these days have been used up by eliminating technical debt built up over a decade in my home lab. I’m also waiting for the new YAML format to be supported by the marketplace so the development process will become much improved (I can modify and test locally and then upload the actual file that I tested with instead of what needs to be done now).
But soon I intend to return to my rule templates and rework them and add this feature in. I’ll take a look at the PR though and merge it if it doesn’t prevent me from achieving one of my other todos in the future. I really appreciate the contribution!
Edit: I’ve reviewed the PR. There are a few changes requested but overall it looks good. Thanks!