2024-06-17T07:19:06-0100 <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)
2024-06-17T07:53:33-0100 <warn> service.start.js:44 (Service.start) Unable to start service tuya 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 Object.start (/src/server/services/tuya/index.js:19:5)
at Service.start (/src/server/lib/service/service.start.js:33:7)
at start (/src/server/api/controllers/service.controller.js:22:21)
I’m also having an issue getting tuya integration to work… i have the correct data center selected (western US) and the tuya app alows the connection… I’ve copied and pasted all of the credentials from everywhere the gladyss guide (“Tuya | Gladys Assistant”) says to but when i clicksave configuration, it processes fomr 1/2 a second and goes back the the data input screen with all of the codes there i just put in… so im guessing that means its saved… when i go to “integrations… tuya discover” it specifically says " Devices detected on your Tuya cloud account" at the top while saying " Tuya devices are automatically discovered. Your Tuya devices need to be added to your Tuya cloud account before." and “No Tuya device discovered.” below that in the table. The devices are associated with the tuya cloud account i just input the credentials for, but when i click scan i get the same message (that there are devices in my tuya cloud account), but “No Tuya device discovered”… am im missing a step somewhere??
gladys | 2025-06-29T19:40:16-0300 <info> index.js:17 (Object.start) Starting Tuya service 6d5db4d1-4cc4-4f5c-9e75-bdc9d36db0d0
gladys | 2025-06-29T19:40:17-0300 <warn> service.start.js:44 (Service.start) Unable to start service tuya TypeError: Cannot destructure property 'list' of 'result' as it is undefined.
gladys | at TuyaHandler.loadDevices (/src/server/services/tuya/lib/tuya.loadDevices.js:25:11)
gladys | at processTicksAndRejections (node:internal/process/task_queues:105:5)
gladys | at Object.start (/src/server/services/tuya/index.js:19:5)
gladys | at Service.start (/src/server/lib/service/service.start.js:33:7)
gladys | at start (/src/server/api/controllers/service.controller.js:22:21)
This is a fairly common issue and is often due to a misconfiguration on the Tuya Cloud Console side.
The most likely causes are:
Access to Cloud Development Base Resource and IoT Core has expired (typically after the free trial period).
An incorrect region is selected in your configuration.
Could you please check these two points?
Just a quick note: Tuya cloud devices rely entirely on internet access. If your connection drops or if Tuya’s servers are down, you’ll lose access to your devices. Whenever possible, I highly recommend using local protocols like Zigbee or Matter, which are more reliable and private