# Tuya integration configuration

**URL:** <https://community.gladysassistant.com/t/configuration-de-lintegration-tuya/9140>\
**Category:** Configuration\
**Created:** [October 26, 2024, 9:59am UTC](https://community.gladysassistant.com/t/configuration-de-lintegration-tuya/9140 "2024-10-26T09:59:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 29, 2024, 5:09pm UTC](https://community.gladysassistant.com/t/configuration-de-lintegration-tuya/9140/6 "2024-10-29T17:09:26Z")

</div>

Actually, when I look at the Node.js package we use to connect to Tuya, everyone is complaining about the same issue — we’re not the only ones:

> <https://github.com/tuya/tuya-connector-nodejs/issues/17>
>
> I'm following this documentation https://developer.tuya.com/en/docs/iot/device-c…ontrol-best-practice-nodejs?id=Kaunfr776vomb
> 
> my code is as in the example:
> 
> \`\`\`
> const { TuyaContext } = require('@tuya/tuya-connector-nodejs')
> 
> const context = new TuyaContext({
> baseUrl: 'https://openapi.tuyaus.com',
> accessKey: 'hidden',
> secretKey: 'hidden',
> })
> 
> async function test () {
> const device\_id = 'hidden'
> const devicedetail = await context.device.detail({
> device\_id: device\_id,
> })
> if (! devicedetail.success) {
> new Error()
> }
> 
> console.log('Device details:', devicedetail)
> }
> 
> test()
> 
> \`\`\`
> 
> But I'm getting this error:
> 
> \`\`\`
> Device details: {
> 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: 1719470515607,
> tid: '585338b5345011ef9c7442b1fe1466b5'
> }
> \`\`\`
> 
> There is no explanation how it should work

It’s infuriating, these cloud products, because we developed this service in July 2023 (Source: [https://community.gladysassistant.com/t/gladys-assistant-4-26-gladys](https://community.gladysassistant.com/t/gladys-assistant-4-26-gladys)

---

_[View the full topic](https://community.gladysassistant.com/t/configuration-de-lintegration-tuya/9140)._
