unparagoned / njsTuya

Openhab interface for Tuya home automation devices sold under various names
27 stars 11 forks source link

TypeError: tmp.length is not a function #5

Closed bmachek closed 6 years ago

bmachek commented 6 years ago

When I run: node njstuya.js -ip xx -id xx OFF

I get the error message from the subject. Did anyone yet have this error?

Stacktrace: TypeError: tmp.length is not a function at forge.aes.Algorithm.initialize (/etc/openhab2/scripts/node_modules/node-forge/lib/aes.js:203:19) at new forge.cipher.BlockCipher (/etc/openhab2/scripts/node_modules/node-forge/lib/cipher.js:118:18) at Object.forge.cipher.createCipher (/etc/openhab2/scripts/node_modules/node-forge/lib/cipher.js:42:10) at new TuyaDevice (/etc/openhab2/scripts/node_modules/tuyapi/index.js:65:43) at Object. (/etc/openhab2/scripts/node_modules/tuyapi/njstuya.js:26:12) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3)

Please advise, if additional data is required.

Cheers, Bastian

bmachek commented 6 years ago

Just noticed this is a duplicate. Sorry.