I’m trying to create reports that counts up how many times a specific state occurred on a device.
Right now, I have devices with an ‘activity’ attribute.
The activity attribute gets updated with different String states, such as “Open” “Motion” “Button pressed”
I want to count how many times the “Button pressed” state occurred in the past month on my device to show on a dashboard that I can use to create reports, but I’m not entirely sure where to start here. I can get total count of states on my device, but I can’t seem to sort out ‘filtering’ that count for specific states.