Tuya device: no data since 19/08

Hello,

Since 19/08, I no longer receive data from my smart plug (Tuya integration) on Gladys.

However, on Tuya’s dev portal, I can see that the data is being sent to their cloud. It seems Gladys can no longer access the data.

In the logs, I don’t see anything except when I try to add a device, where I get the following error:

2024-08-28T14:52:12+0200 <error> tuya.discoverDevices.js:38 (TuyaHandler.discoverDevices) Unable to load Tuya devices TypeError: Cannot destructure property 'list' of 'result' as it is undefined.
    at TuyaHandler.loadDevices (/src/server/services/tuya/lib/tuya.loadDevices.js:25:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at TuyaHandler.discoverDevices (/src/server/services/tuya/lib/tuya.discoverDevices.js:35:15)
    at discover (/src/server/services/tuya/api/tuya.controller.js:10:21)

Do you see where the problem might be coming from?

Thanks for your help.

Hi @PhilippeMA,

You’re not the first to complain about the Tuya integration — since this summer I feel like Tuya has modified / cut the API, and since then nothing works.

I investigated with one user on the English forum and there’s nothing to be done: the API no longer works.

The full API error is:

{
  code: 60009001,
  msg: 'API permission package error. For the solution, see https://developer.tuya.com/en/docs/iot/authentication-method?id=Ka49gbaxjygox.',
  success: false,
  t: 1718643899114,
  tid: 'ba83bfdc2ccb11efa3a81e79da01f281'
}

I searched for quite a while this summer, without success :confused:

Unfortunately that’s the problem with Cloud platforms — we’re at the mercy of their goodwill…

Apparently the integration still works, can you check these points: