jvmahon / Homebridge-HomeSeer4

Homebridge Plugin for HomeSeer 3 and 4
28 stars 8 forks source link

Adding Virtual device to HS4, add to Homebridge - HB fails on boot with UnhandledPromiseRejectionWarning #161

Closed rjameson3 closed 2 years ago

rjameson3 commented 2 years ago

I have a new HomeBridge setup, using JVMahon homebridge-homeseer4 plug-in, added a bunch of devices and working well. Attempted to add some cloud based devices (Tuya, Globe etc.) and they all crash on boot with Unhandled PromiseRejectionWarning. Figured if Homeseer plugin is accessing a web based cloud device - perhaps the homebridge did not like it. I added the Tuya plugin direct to Homebridge and solved that issue at least for Tuya based devices.

I have a Meross powerstrip - only in HomeKit and want to see/control HomeKit devices in Homeseer. I created the Virtual devices in HS4, get the ref code and add to Homebridge config...restart, again - crashes and it then stalls saying plugin is taking long time to load and preventing homebridge from starting. When I remove the offending device - homebridge works again. Tried to add as a switch and lightbulb in homebridge - in case it mattered - both crashed.

Any way to determine why the virtual device is crashing homebridge? Might also be why my other cloud based HS4 devices are not working.

image image image image

jvmahon commented 2 years ago

I have no idea what your "_bridge" entry is - it is not something supported in the Homebridge-Homeseer4 plugin.

rjameson3 commented 2 years ago

I have no idea either…I only setup, added info needed, scanned the QR …it may have scanned a few times early on when things were not working, I rescanned into HomeKit…I could remove lines and see what is does.

Sent from Mobile Outlookhttps://aka.ms/sdimjr


From: jvmahon @.> Sent: Tuesday, November 30, 2021 6:08:29 PM To: jvmahon/Homebridge-HomeSeer4 @.> Cc: Ron Jameson @.>; Author @.> Subject: Re: [jvmahon/Homebridge-HomeSeer4] Adding Virtual device to HS4, add to Homebridge - HB fails on boot with UnhandledPromiseRejectionWarning (Issue #161)

I have no idea what your "_bridge" entry is - it is not something supported in the Homebridge-Homeseer4 plugin.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jvmahon/Homebridge-HomeSeer4/issues/161#issuecomment-983141527, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADQ5AP6BJKLJIUDSGDEIN2TUOVRP3ANCNFSM5JDDA3AQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rjameson3 commented 2 years ago

Would it happen to be when I put the plug-in in child bridge - I read performance was better suited in that so makes sense the bridge might be that. Again, was prob early setup issues not seeing results.

Sent from Mobile Outlookhttps://aka.ms/sdimjr


From: Ron Jameson @.> Sent: Tuesday, November 30, 2021 6:58:39 PM To: jvmahon/Homebridge-HomeSeer4 @.>; jvmahon/Homebridge-HomeSeer4 @.> Cc: Author @.> Subject: Re: [jvmahon/Homebridge-HomeSeer4] Adding Virtual device to HS4, add to Homebridge - HB fails on boot with UnhandledPromiseRejectionWarning (Issue #161)

I have no idea either…I only setup, added info needed, scanned the QR …it may have scanned a few times early on when things were not working, I rescanned into HomeKit…I could remove lines and see what is does.

Sent from Mobile Outlookhttps://aka.ms/sdimjr


From: jvmahon @.> Sent: Tuesday, November 30, 2021 6:08:29 PM To: jvmahon/Homebridge-HomeSeer4 @.> Cc: Ron Jameson @.>; Author @.> Subject: Re: [jvmahon/Homebridge-HomeSeer4] Adding Virtual device to HS4, add to Homebridge - HB fails on boot with UnhandledPromiseRejectionWarning (Issue #161)

I have no idea what your "_bridge" entry is - it is not something supported in the Homebridge-Homeseer4 plugin.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jvmahon/Homebridge-HomeSeer4/issues/161#issuecomment-983141527, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADQ5AP6BJKLJIUDSGDEIN2TUOVRP3ANCNFSM5JDDA3AQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jvmahon commented 2 years ago

You're right - that gets automatically added when config-ui-x is used to set each plugin in its own bridge, so that shouldn't be the issue. I really have no idea what is going wrong in your setup. Can you make sure you are using the latest version of the plugin by doing

npm -g update
rjameson3 commented 2 years ago

After digging further, node.js was not updating (firewall block on my end) – was on v14 – now am current. No longer a notice of promise rejections being deprecated – but have a new error (still hanging on the virtual device).

image

I am still digging....noticed in HS4, the ID now shows a different number that does not match what is in () after the name of the device (shows under Associated Devices). I changed it now to this new ID in the plugin and it shows up now (no error). Next step - see if I can take it to the next level and get it to actually do something thru homeseer.

Ron

From: jvmahon image> Sent: Tuesday, November 30, 2021 8:16 PM To: jvmahon/Homebridge-HomeSeer4 @.> Cc: Ron Jameson @.>; Author @.***> Subject: Re: [jvmahon/Homebridge-HomeSeer4] Adding Virtual device to HS4, add to Homebridge - HB fails on boot with UnhandledPromiseRejectionWarning (Issue #161)

You're right - that gets automatically added when config-ui-x is used to set each plugin in its own bridge, so that shouldn't be the issue. I really have no idea what is going wrong in your setup. Can you make sure you are using the latest version of the plugin by doing

npm -g update

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jvmahon/Homebridge-HomeSeer4/issues/161#issuecomment-983219113, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADQ5AP3N5UULJ6B7AVVDN2DUOWAOFANCNFSM5JDDA3AQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jvmahon commented 2 years ago

Try updating to 1.0.23

npm -g update
jvmahon commented 2 years ago

No further comment, so closing this.