Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Unhandled promise rejection. #25

Open
writingwhilenoodles opened this issue Nov 13, 2020 · 2 comments
Open

Unhandled promise rejection. #25

writingwhilenoodles opened this issue Nov 13, 2020 · 2 comments

Comments

@writingwhilenoodles
Copy link

writingwhilenoodles commented Nov 13, 2020

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)

@neoworld7
Copy link

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
Copy link

Logs.
IMG_0200

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants