Not logging in correctly
ow1962 opened this issue · comments
ow1962 commented
Prerequisite
- Yes
Accounts
- Yes
Country Code
1
Region Code
AZ (West US)
Logs
"dev_lang": "javascript",
"dev_channel": "homebridge",
"devVersion": "1.7.0-beta.53"
}
body = {
"country_code": 1,
"username": "ottoweeber@hotmail.com",
"password": "88fa5d40b7c1fb740b87c2bda9ca50bd",
"schema": "smartlife"
}
[1/14/2024, 1:39:10 PM] Homebridge v1.7.0 (HAP v0.11.1) (Tuya) is running on port 47906.
[1/14/2024, 1:39:10 PM] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/iot-01/associated-users/actions/authorized-login
data = {
"code": 1106,
"msg": "permission deny",
"success": false,
"t": 1705257550483,
"tid": "34efeaa5b30c11eeaf0a66078db13d13"
}
[1/14/2024, 1:39:10 PM] [Tuya] Login failed. code=1106, msg=permission deny
[1/14/2024, 1:39:10 PM] [Tuya] Please make sure your countryCode, username, password, appSchema is correct, and app account is linked with cloud project.
JSON:
"name": "Tuya",
"options": {
"projectType": "2",
"accessId": "5nwxwy4j7kp5fgsspw4j",
"accessKey": "c69a98884a29430fb72cc1b6452a5a22",
"countryCode": 1,
"username": "ottoweeber@hotmail.com",
"password": "ABCDEF",
"appSchema": "smartlife",
"debug": true
},
"_bridge": {
"username": "0E:09:8E:F2:D1:3D",
"port": 47906
},
"platform": "TuyaPlatform"
Other Infomations
The password being picked up is the device code not the password - see the json
axm2 commented
The password is salted so it won't match your plaintext password that you define in the config.