Best thermostat for event logging

My primary goal is to log the widest range of events to a web server (set points, temp, and state). I will deploy to multiple sites making cost a bigger factor. It would need to have controls at the unit not just mobile. Thoughts?