prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
51 stars 22 forks source link

ERROR Client ID is not configured. #106

Closed freemanuk closed 1 week ago

freemanuk commented 1 month ago

I am not sure what went wrong and I keep getting an error saying my Client ID is not configured (see below). I have been using my Client ID for other Tuya plugins all this while and there are no problems.

07/07/2024, 16:38:10Tuya Ir BridgeLoaded plugin 'homebridge-tuya-ir' 07/07/2024, 16:38:10Tuya Ir BridgeLoading 1 platforms... 07/07/2024, 16:38:10Tuya Ir BridgeTuyaIRERRORClient ID is not configured. Please check your config.json 07/07/2024, 16:38:11Tuya Ir BridgeBridge is running on port 51936.

prasad-edlabadka commented 1 month ago

This looks like missing config. Can you please check config.json is correctly configured? Please refer to Readme or use Homebridge UI to configure.

freemanuk commented 1 month ago

Have done a check with jasonformatter and it is valid.

{ "platform": "TuyaIR", "name": "TuyaIR", "client_id": "aaaaaaaa", "region": "eu", "secret": "bbbbbbbb", "smartIR": [ { "deviceId": "ccccccccccccc", "autoFetchRemotes": true, "devices": [ { "id": "ddddddddddddd" } ] } ] }

prasad-edlabadka commented 1 week ago

The configuration is incorrect. Please refer to readme. The sample configuration should be like the one below.

"platforms": [
    {
        "name": "TuyaIR",
        "tuyaAPIClientId": "Your Tuya Client ID",
        "tuyaAPISecret": "Your Tuya API Secret",
        "deviceRegion": "eu",
        "smartIR": [
            {
                "deviceId": "xxxxxxx",
                "autoFetchRemotesFromServer": false,
                "configuredRemotes": [
                    {
                        "id": "xxxxxxx",
                        "diy": false,
                        "model": "Sample",
                        "brand": "Sample Brand"
                    },
                    {
                        "id": "xxxxxx",
                        "diy": false,
                        "model": "Sample",
                        "brand": "Sample Brand"
                    }
                ]
            }
        ],
        "platform": "TuyaIR"
    }
]