Cloud service for smart devices