ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
65 stars 27 forks source link

UnhandledPromiseRejectionWarning: Error: Startup error: get scenes or devices #174

Closed marcodesantis71 closed 4 years ago

marcodesantis71 commented 4 years ago

Hi,

I've installed successfully the plugin in the past.

Today I receive this error on startup:

[2019-12-2 14:06:23] [FibaroHC2] Error getting data from Home Center: null Dec 2 14:06:23 master homebridge_zwave[13646]: (node:13646) UnhandledPromiseRejectionWarning: Error: Startup error: get scenes or devices Dec 2 14:06:23 master homebridge_zwave[13646]: at /usr/lib/node_modules/homebridge-fibaro-hc2/dist/index.js:113:19 Dec 2 14:06:23 master homebridge_zwave[13646]: at processTicksAndRejections (internal/process/task_queues.js:93:5) Dec 2 14:06:23 master homebridge_zwave[13646]: (node:13646) 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) Dec 2 14:06:23 master homebridge_zwave[13646]: (node:13646) [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.

I try to reinstall the package, remove persist and accessory folders but nothing to do.

Any solution?

ilcato commented 4 years ago

Which version of nodejs do you have?

marcodesantis71 commented 4 years ago

Which version of nodejs do you have?

6.13.1 on ubuntu 16.04

ilcato commented 4 years ago

Can you upgrade to a more recent one?

marcodesantis71 commented 4 years ago

Can you upgrade to a more recent one?

Hi,

After HC2 restart the problem was solved.

Now I've another problem.

I create a new user on HC2. I create a variable (true/false) and create a scene with the new variable. On config.json I set new variable on switchglobalvariables parameter.

On HC2 the new user has a permission for the scene.

When I try to start scene I receive this error:

There was a problem setting variable: Gatto to true

If I use the admin user I have not a problem.

Schermata 2019-12-03 alle 11 15 56 Schermata 2019-12-03 alle 11 16 24 Schermata 2019-12-03 alle 11 16 37 Schermata 2019-12-03 alle 11 17 10
marcodesantis71 commented 4 years ago

OK. I read a wifi. Only Super User can activate.

My Question is: is it possibile (as superuser) view only scenes create as variable?

ilcato commented 4 years ago

Write me on email to setup a call.