Closed shubhamshah02 closed 3 years ago
(node:28569) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at /usr/local/lib/node_modules/homebridge-broadlink-rm-enhanced/accessories/accessory.js:52:40
at catchDelayCancelError (/usr/local/lib/node_modules/homebridge-broadlink-rm-enhanced/helpers/catchDelayCancelError.js:8:20)
at FanAccessory.performSend (/usr/local/lib/node_modules/homebridge-broadlink-rm-enhanced/accessories/accessory.js:50:11)
at FanAccessory.setSwingMode (/usr/local/lib/node_modules/homebridge-broadlink-rm-enhanced/accessories/fan.js:132:16)
at FanAccessory.setCharacteristicValue (/usr/local/lib/node_modules/homebridge-broadlink-rm-enhanced/base/accessory.js:138:10)
at SwingMode.emit (events.js:315:20)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:867:47
at new Promise (
(Use node --trace-warnings ...
to show where the warning was created)
(node:28569) 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:28569) [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.
When I enable/disable the oscillation on any specific fan speed, it prints a very long error in the logs. In order to apply the oscillation right now, I have to switch fan speed to something else and return back to what it was and then it works.