So I analyzed the hub stat data carefully this evening, and learned a bunch of interesting things. Thought I'd share them here in cause others experience the same problems. And hoping the wise people in this community would share their interpretation of some of these findings. Without further ado, the Top Ten Discoveries from hub stats......
10 I had eight apps whose average runtime was in the 25-45 secs. That's seconds, not milliseconds. They were all child apps of Tile Master 2 by the prodigious @bptworld. Very sad, because I Iove what this app does for my dashboards! Will have to figure out how to make these more efficient. Giving up TM2 would be depressing.
9 Sonos is very slow, both the app (1.8 sec avg runtime) and the device (200-300 ms avg). Is this normal?
8 I've been using the Darksky.Net weather driver with impunity evidently, averaging nearly half a second every time that baby hits the cloud. Will have to cutback there.
7 I had a couple RM4 apps that were long running (1-2 secs), but they are efficiently written. Could a wait or a delay in RM inflate these runtime metrics?
6 The main dashboard app had an average runtime of nearly half a second. All my dashboards use selected devices, but I do have individual 42 dashboards. Any suggestions?
5 A couple of my wired Konnected devices--a piezo buzzer and a screen-break sensor--were in the 200-300 ms range. Should I be concerned?
4 I was using the Average Temp and Average Humidity apps from Hubitat. I've learned that (duh) if you add too many sensors to the average, you get an app that takes 500+ ms to run, and it's running every minute or so......translated, don't be stupid like me.
3 I'm using RM to monitor the active/inactive status of about a dozen motion sensors in the common areas of my home to sync a virtual whole-house motion sensor--it's what allows me to put the house to sleep at night when the house has gone quiet (i.e., no motion). This is a total resource hog -- it takes >1 sec to run and it runs every time any sensor is triggered or reset. Would one of the virtual motion apps be more efficient than RM for this purpose? I suppose I could dial it back so it's only running once every few minutes regardless of motion in the house.
2 I use Hubconnect to feed devices from my 4 other hubs. Two of the high runcount devices were virtual remote hubs. One of them was averaging 6 events per second across a 5 minute test. So, just for giggles, I reran the hub stats on that hub. There wasn't anything generating lots of events. The chattiest was the LiFX app; it produced 120 events in 10 minutes. Not sure how to reconcile a chatty remote hub with a non-chatty actual hub?? I do know that the remote hub in question is where I keep all my custom cloud connected and wifi apps (e.g., Ecobee Suite, CoCoHue, LiFX, Netatmo)
1 Re: HubConnect, there was also a remote hub app that had an average run-time of >300 ms. Not sure what's going on there or how ridiculous that would be. I wonder if this Hub Mesh announcement from Hubitat Live the other night will operate more efficiently than HubConnect?