homebridge-mi-camera
homebridge-mi-camera copied to clipboard
UnhandledPromiseRejectionWarning
I get this error after implementing everything with my Mi Home Security Camera Basic 1080p
(node:18722) UnhandledPromiseRejectionWarning: Error: Could not connect to device, token might be wrong
at enrichPromise.promise.then.then.catch.err (/usr/lib/node_modules/miio/lib/network.js:324:16)
at <anonymous>:null:null
(node:18722) 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:18722) [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.
The config seems pretty straight forward with this
{
"accessory": "MiCamera",
"name": "Mi Camera",
"ip": "192.168.xxx.xxx",
"token": "32-alphanumeric-code"
},
Any ideas?