cloudtuya icon indicating copy to clipboard operation
cloudtuya copied to clipboard

Error running on RPi armv6l

Open Electrik-rich546456 opened this issue 4 years ago • 3 comments

Hello, I am getting this error node example.js undefined (node:10882) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'brightness' of undefined at Light.getBrightness (/home/pi/cloudtuya/devices/light.js:10:47) at process._tickCallback (internal/process/next_tick.js:68:7) (node:10882) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:10882) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. It created the devices.json successfully but it just fails to turn lights off how do i fix it. Ideally i want two script example to turn on and off

Electrik-rich546456 avatar Jan 17 '21 23:01 Electrik-rich546456

Can you run with DEBUG=* node YOURSCRIPT.js

unparagoned avatar Jan 26 '21 22:01 unparagoned

I don't know what that means. Where does it go? In the file? Or in the CLI

Electrik-rich546456 avatar Jan 27 '21 01:01 Electrik-rich546456

Yep in the command line. Run your script with the DEBUG=* prefix

unparagoned avatar Jan 29 '21 19:01 unparagoned