Shield Pro with Android Debug Bridge integration and state detection defaults?

The documentation for state detection is a bit DIY. Surely one person with a working integration can just share their setup? It could even be added to the documentation for copy and pasting, or even better, added to the integration itself?