There are probably a ton of use cases for something like this. For this example, Hubitat sends me hourly notifications showing how long the garage door has been open.
It uses 2 rules:
- Increment the counter every hour while the garage door is open, reset to zero when it closes
- Send a notification when the count is incremented
It also uses a virtual dimmer. In the example below the virtual dimmer is called "Garage Door Counter". After you create it, turn it on.
Rule 1 - Increment the counter when true, reset to zero when false
- Make sure to set the Cancel to truth change option on the Delay, and also set the Stop on truth change option for the repeat
Rule 2 - Send the notification
Result