GladysAssistant / Gladys

A privacy-first, open-source home assistant
https://gladysassistant.com
Apache License 2.0
2.55k stars 278 forks source link

Unable to integrate Tuya #2093

Closed Schokolade-spec closed 2 months ago

Schokolade-spec commented 2 months ago

Describe the bug When I scan Tuya devices on Gladys Assistant it doesn't show anything even though everything is configured.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Integrations' and 'Tuya'.
  2. Click on 'Découverte Tuya' and 'Scanner'.

Logs 2024-06-02T20:10:09+0200 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)

Your Gladys installation (please complete the following information):

Pierre-Gilles commented 2 months ago

Thanks for your message! What kind of Tuya devices are you using? Would you mind sharing your Tuya credentials in private message so i can reproduce?

Thanks a lot 🙏

Schokolade-spec commented 2 months ago

Solved, the Raspberry Pi didn't seems to be connected to Internet.