Tuya Smart Lock API Returns "Success" But Door Doesn't Unlock - Remote Access Issue
Problem Summary
I'm using the Tuya Cloud API to control my smart lock remotely, but while the API calls return "success": true, the physical lock doesn't actually unlock. The lock works perfectly through the official Tuya Smart app, but fails when using the API programmatically.
Environment Details
API Region: US (https://openapi.tuyaus.com)
Connection: WiFi-enabled smart lock (connected to home network)
Programming Language: Python 3
API Version: Tuya Cloud API v1.0
Code Implementation
I'm following the standard Tuya API workflow:
python
- Get access token (Working)
- Get password ticket ( Working - returns ticket_id)
- Attempt unlock ( Returns success but door doesn't open)
def unlock_door_password_free(self):
"""Password-free unlock attempt"""
url_path = f"/v1.0/devices/{self.device_id}/door-lock/password-free/open-door"
body = json.dumps({"ticket_id": self.ticket_id})
result = self._api_request('POST', url_path, body)
return result # Returns success but door doesn't unlock
Unlock Response (Success but no physical action):
json{
"success": true,
"result": true,
"t": 1640995100000
}