Wenn ich mir das Node.js-Paket ansehe, das wir für die Verbindung zu Tuya verwenden, beschweren sich alle über dasselbe Problem, wir sind nicht die Einzigen:
ouvert 06:48AM - 27 Jun 24 UTC
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
Das ist frustrierend mit diesen Cloud-Produkten, denn wir haben diesen Dienst im Juli 2023 entwickelt (Quelle: Gladys Assistant 4.26: Gladys devient compatible Tuya/SmartLife/LSC Connect! ), und ein Jahr später ist es bereits unbrauchbar, gut genug, um neu geschrieben zu werden…
Das ist nicht ernsthaft mit diesen nicht standardisierten Cloud-APIs.