HomebridgeLgSmartThinqAirco icon indicating copy to clipboard operation
HomebridgeLgSmartThinqAirco copied to clipboard

Unhandled promise rejection.

Open writingwhilenoodles opened this issue 4 years ago • 2 comments

Hi,

So the plugin sort of works, but only intermittently. About 1/3 commands work, the rest don't. It will show a change in the Homekit app but the airco itself doesn't change what it's doing.

The log shows many errors like this:

(node:391) UnhandledPromiseRejectionWarning: Error: Could not change isOn state of the AC unit! at LgAircoController.setPowerState (/homebridge/node_modules/homebridge-lg-airco/src/lg/lg-airco-controller.ts:45:23) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:391) 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: 20)

writingwhilenoodles avatar Nov 13 '20 16:11 writingwhilenoodles

Hey I’ve the same problem. Rejection.

i still can control my LG airco everytime. But the state of mode of AC is false. Put heat and the information back is that the system is cooling.

Any solution?

IMG_0199

neoworld7 avatar Jan 24 '21 09:01 neoworld7

Logs. IMG_0200

neoworld7 avatar Jan 24 '21 09:01 neoworld7