I was looking at the device type for power reporting items like the SmartOutlet. In the recent activity you see power reporting every few seconds and it fills up the log to the point where you can’t use that activity log to see the last few times something was switched on or off.
I had an idea, to throttle the reporting in the log based on the % of change. So only log the power consumption when it changes by enough that I care. Bonus points would be to keep the indicator on the tile “live” or as frequent as possible, and maybe even in the device configuration allow me to set the % of change that is important to me (defaulting to 25% maybe.
I went and looked at the code, and t’s not as obvious as I had hoped. I’m not sure I can control the activity separately from the display on the tile. But even skipping that, I’ve been having trouble getting my head around the groovy code and SDK.
Anybody ever done anything like this before? I’ve started and stopped a few SmartThings dev projects already, every time I either get to a point where I feel like the dev tools (i.e. simulator) don’t work so I can’t really figure things out, or the documentation is just lacking (sometimes it’s old and unclear to me).