Have you looked at the initial state event streamer that is integrated with SmartThings:
http://blog.initialstate.com/tutorial-smartthings-meet-initial-state/
or this:
Have you looked at the initial state event streamer that is integrated with SmartThings:
http://blog.initialstate.com/tutorial-smartthings-meet-initial-state/
or this: