homebridge-xiaomi-fan: can connect fan but can't control fan

@merdok It is a cool plugin, but I meet some troubles. I run homebridge in my MacBook and I got the token from android apk without miio. Here is log:

[5/10/2020, 11:45:38 PM] [My Xiaomi Fan] Xiaomi Fan - connected to Fan
[5/10/2020, 11:45:38 PM] [My Xiaomi Fan] MiioDevice {
  model=dmaker.fan.p5,
  types=miio,
  capabilities=
}
false
false
(node:18623) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'log' of undefined
    at /usr/local/lib/node_modules/homebridge-xiaomi-fan/index.js:312:26
(node:18623) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:18623) [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.
(node:18623) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'log' of undefined
    at /usr/local/lib/node_modules/homebridge-xiaomi-fan/index.js:312:26
(node:18623) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18623) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'log' of undefined
    at /usr/local/lib/node_modules/homebridge-xiaomi-fan/index.js:312:26
(node:18623) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:18623) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'log' of undefined
    at /usr/local/lib/node_modules/homebridge-xiaomi-fan/index.js:312:26
(node:18623) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
ifconfig: sysctl IFDATA_SUPPLEMENTAL: Cannot allocate memory

Thanks a lot.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

@merdok I’m outside right now, so I will DM you as soon as I get back home.