Check out the Pulse plugin...
https://forums.indigodomo.com/viewforum.php?f=333and the Timed Devices plugin
https://www.indigodomo.com/pluginstore/88/I'd recommend using one or both of those to get what you want. I use a combination of timed devices plugin, triggers and variables to track when my network is up/down and keep a count. (I had that all set up
before the pulse plugin existed. I installed and tested the pulse plugin... but since my stuff was already working, I left it as is.
I created a "Network" device that uses the online sensor plugin to turn on-off the device. Then triggers start/stop running timers for either online or offline. When there is a status change, another trigger adds +1 to today, this week, this month and this year. Then there are schedules for daily, weekly, monthly and annually that take the totals for that period and move them today -> yesterday. This week -> last week. This Month -> Last Month. This Year -> Last Year.
I'm pretty sure the pulse plugin has all of that in the plugin without a need for the extra schedules and triggers.
Hope that helps