udpate smart.json and smart.lock