I'm in urgent need of an API that generates temporary passwords for a Tuya smart lock. The main functionality I need is the ability to generate these passwords. The delivery method is not of concern as I just need a working sample of the JSON body for creating the API.
Ideal Skills:
- Experience with developing APIs, particularly for smart devices
- Proficient in JSON and API design
- Familiarity with the Tuya platform is a huge plus
- Ability to work under a tight deadline
- Excellent communication skills
Please note that the project is required ASAP.
We have obtained these locks , we try through api to create temporary passwords like it can be done through the app without luck. Also the device permision is on read. Can it change?
We have tried both the Smart Home Basic and the Smart Lock open service getting error codes such #illegal
{
"name": "test_id3",
"password": "123456789",
"effective_time": 1715372160,
"invalid_time": 1718050560,
"password_type": "ticket",
"phone": "1234",
"type": 0,
"time_zone": "Europe/Athens",
"ticket_id": "1234",
"schedule_list": [
{
"effective_time": 450,
"invalid_time": 542,
"working_day": 111
}
],
"relate_dev_list": ""
}
{
"name": "Guest Access",
"password": "12345678",
"effective_time": 1715372160,
"invalid_time": 1718050560,
"password_type": "ticket",
"time_zone": "Europe/Athens",
"schedule_list": [
{
"effective_time": 720, // This could represent the start time in minutes from midnight when the password becomes active.
"invalid_time": 1080, // This could represent the end time in minutes from midnight when the password becomes inactive.
"working_day": 127 // This could represent the days of the week the password is valid (e.g., 127 might mean every day).
}
]
}
{
"name": "test_id3",
"password": "010101",
"effective_time": 1715372160,
"invalid_time": 1718050560,
"password_type": "ticket",
"phone": "1234",
"type": 0,
"time_zone": "Europe/Athens",
"ticket_id": "1234",
"schedule_list": [
{
"effective_time": 450,
"invalid_time": 542,
"working_day": 111
}
],
"relate_dev_list": ""
}
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
{
"name": "test_id3",
"password": "010101",
"effective_time": 1715372160,
"invalid_time": 1718050560,
"password_type": "ticket",
"phone": "1234",
"type": 0,
"time_zone": "Europe/Athens",
"ticket_id": "123456",
],
"relate_dev_list": ""
}
{
"result": {
"active_time": 1710350262,
"biz_type": 0,
"category": "mk",
"create_time": 1709486308,
"icon": "smart/icon/bay1601253790250Rnas/[login to view URL]",
"id": "bf0b4edb132ef2e965uyep",
"ip": "5.203.179.238",
"lat": "37.9900",
"local_key": "^+crWzhx(EA8&D.^",
"lon": "23.7200",
"model": "T12-Wifi-II",
"name": "Card+PIN 3",
"online": true,
"owner_id": "186497531",
"product_id": "s7qamihym60z5jro",
"product_name": "Card+PIN",
"status": [
{
"code": "unlock_method_create",
"value": ""
},
{
"code": "unlock_method_delete",
"value": ""
},
{
"code": "unlock_method_modify",
"value": ""
},
{
"code": "synch_method",
"value": ""
},
{
"code": "temporary_password_creat",
"value": "AAMAAAA="
},
{
"code": "temporary_password_delete",
"value": "AAIA"
},
{
"code": "temporary_password_modify",
"value": ""
},
{
"code": "remote_no_pd_setkey",
"value": "AAAB"
},
{
"code": "remote_no_dp_key",
"value": "AAABAAA="
},
{
"code": "unlock_password_kit",
"value": "AAAAAQAA"
},
{
"code": "unlock_card_kit",
"value": ""
},
{
"code": "unlock_temporary_kit",
"value": "AAAAAQAA"
},
{
"code": "unlock_offline_pd",
"value": ""
},
{
"code": "unlock_phone_remote_kit",
"value": "AAAAAQAA"
},
{
"code": "lock_alarm_kit",
"value": ""
},
{
"code": "closed_opened_kit",
"value": "AQAC"
}
],
"sub": false,
"time_zone": "+02:00",
"uid": "eu1710346356937Azsct",
"update_time": 1712829951,
"uuid": "4582e22aeef61f32"
},
"success": true,
"t": 1712837165001,
"tid": "df3c06e0f7fb11eea93642261855c105"
}