Giter VIP home page Giter VIP logo

Comments (10)

thenewwazoo avatar thenewwazoo commented on August 19, 2024 1

Thanks for the report. If you discover anything more than what we discussed on Discord, please let me know. I'm continuing to look into this.

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024 1

Okay, so I get this now. I'm using an IIFE inside the constructor to enable awaiting the bridge. This detaches the constructor context from the timeout that happens. In short: trying to do complicated things in the constructor is a code smell anyway, and I should probably refactor this to not be fake-OOP with classes I instantiate and then throw away.

Fixing this is going to require a refactor to clean up the above. It bugs the shit out of me that the plugin crashes, though. :)

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024

This still has me totally flummoxed. I've stuck trace logging in the code, and my hunch is right: the PicoRemote constructor is awaiting the bridge, and throwing when it times out, but for some reason the try-catch block around the new call just... doesn't work? I have nfi.

from homebridge-lutron-caseta-leap.

donavanbecker avatar donavanbecker commented on August 19, 2024

Not a huge deal as long as your plugin is put in a child bridge so it's not restarting all of homebridge.

from homebridge-lutron-caseta-leap.

khowell20454 avatar khowell20454 commented on August 19, 2024

Same issue here, just installed this plugin today with all of the credentials and getting the same response in Homebridge. Tried switching Homebridge to insecure as mentioned in another issue but did not fix. I am using a non-pro version of the Lutron Caseta hub.

[Lutron] Could not connect to discovered hub: got tired of waiting
Error: Timed out waiting for bridge to appear
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-lutron-caseta-leap/src/BridgeManager.ts:23:31)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
[1/20/2022, 12:01:21 PM] [Lutron] Child bridge process ended

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024

Can you please enable debug logging and attach a complete log?

from homebridge-lutron-caseta-leap.

donavanbecker avatar donavanbecker commented on August 19, 2024

@khowell20454 , I got this when there was no internet going to homebridge. I would guess yours is different. You may want to open another issue and attach logs as @thenewwazoo has requested.

from homebridge-lutron-caseta-leap.

HulacSt avatar HulacSt commented on August 19, 2024

I was having a similar issue on 2.2.1 with homebridge 1.4 running on a raspberry pi 0w. I switched to a raspberry pi 3b on LAN and now it's working just fine. Not sure if it's the LAN or increased computing power that helped but I can play with it tomorrow.

from homebridge-lutron-caseta-leap.

readybeginn avatar readybeginn commented on August 19, 2024

I'm having a similar issue. Rpi3B running homebridge 1.4.0. When opening settings for initial configuration, it times out trying to load them.

image

from homebridge-lutron-caseta-leap.

BarnesGH avatar BarnesGH commented on August 19, 2024

This is what it does when using Hoobs as well (which I know is not currently supported unfortunately)

from homebridge-lutron-caseta-leap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.