Introducing 'Abacus Counting Machine' Count how many times a Device is triggered. Displays Daily, Weekly, Monthly and Yearly counts!
6/20/20 - Complete rewrite , New comments start @ post 40
Features:
Nothing like it on Hubitat or ST!
Select any Acceleration, Motion, Contact, Switches and/or Thermostats.
Displays Daily, Weekly, Monthly and Yearly count for each device.
Can be very useful to track patterns. You'll be amazed how many times the freezer door gets opened in a day or how many times the toilet gets flushed! Anything is possible!
Display all stats on your dashboards
Parent/Child App structure
Create as many child apps as needed
Apps can be found on my GitHub or by using Bundle Manager.
When reporting problems...
Be sure you are on the latest version. I won't troubleshoot an older version.
Turn on debug and screenshot the issue happening in the log. One line or just the error doesn't cut it. I need a log.
Post the screenshot of the log with an explanation of the problem.
Thanks
Note: If using Smartly, add this to your CSS within the Dashboard settings.
V1.0.1 - 12/31/18 - Major rewrite to how the app finds new devices and sets them up for the first time. You will need to delete any lines that have null in them or delete the child app and start over. Sorry.
Cool idea! And much easier than other logging solutions I've tried. (Still trying to get InfluxDB and Grafana to work; settled for keeping my Home Assistant instance up because of the cute, short-term history charts it provides.)
If you ever get bored and want to add more features, thermostat support might be a nice addition (how many times it turned on--or, I guess, went into whatever selected operating state(s)--is what I'm thinking). I didn't see a way to do that, though I had already thought about creating a virtual switch that turned on every time my thermostat went into heating, so that would be a workaround for anyone else who is thinking about this too.
I started with the switch OFF which I interpreted the instructions to mean the child app would be active. But, when no report appeared, I switched it ON and got the report.
Your picture shows two separate, unrelated options. The grey box allows you to specify an external device to turn the app on/off. You do not have this configured (and don't have to as it is optional).
The toggle below that is the debug logging toggle, and has nothing to do with the enable/disable switch above it.
More excuses to putting contact sensors on everything... fridge/freezer doors, inside toilet tank, on the handle, to count flushes, add one to the doggie door... you name it!