tuya-homebridge: Access key/token improperly parsed

plugin 1.1.7 node 14.17

After proper setup following this tutorial: https://developer.tuya.com/en/docs/iot/Tuya_Homebridge_Plugin?id=Kamcldj76lhzt

accessKey in config.json seems to be parsed incorrectly: image

when accessKey is changed to accessToken, a different error occurs:

{
    "bridge": {
        "name": "Homebridge 4547",
        "username": "***********************",
        "port": ***********************,
        "pin": "***********************"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "options": {
                "username": "***********************",
                "password": "***********************",
                "accessId": "***********************",
-                 "accessKey": "6"***********************"b",
+                "accessToken": "6"***********************"b",
                "lang": "en",
                "projectType": "2",
                "appSchema": "tuyaSmart",
                "endPoint": "https://openapi.tuyaus.com",
                "countryCode": 123456,
                "debug": true
            },
            "name": "TuyaPlatform",
            "platform": "TuyaPlatform"
        }
    ]
}

image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (13 by maintainers)

Most upvoted comments

Hi guys, Sorry for a long period to test your suggest. First of all, thank you all for your help. After trying everything (Create a new account in Tuya platform, create a new cloud Project, modify JS files, etc…), I still cannot get my accessories. I now have the same problem as Kellemar, “Token Expired”.

I will therefore have a look at the ticket 41 side. Too bad it is so complicated to operate. Richard

Hello,

I tried to use this new plugin, but it doesn’t work and i receive this message:

Capture d’écran, le 2021-06-18 à 23 46 05

My configuration of JASON file is: Capture d’écran, le 2021-06-18 à 23 44 24

My configuration of Tuya Web Platform is: Capture d’écran, le 2021-06-18 à 23 39 11 Capture d’écran, le 2021-06-18 à 23 40 49 Capture d’écran, le 2021-06-18 à 23 41 48

I use the same email address for my account of the cell apps and Web Platform but the password is different.

I’m absolutely sure that my credential is OK on JASON file. An idea why i receive this error message?

Thanks for your help! Richard