Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'model' of undefined #57

Closed
slavikme opened this issue Dec 6, 2020 · 2 comments
Closed

TypeError: Cannot read property 'model' of undefined #57

slavikme opened this issue Dec 6, 2020 · 2 comments

Comments

@slavikme
Copy link

slavikme commented Dec 6, 2020

After upgrading to the latest version (v2.3.4), I have started receiving these errors:

TypeError: Cannot read property 'model' of undefined
    at YeelighterPlatform.configureAccessory (/homebridge/node_modules/homebridge-yeelighter/src/platform.ts:48:103)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:307:25
    at Array.filter (<anonymous>)
    at Server.restoreCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:270:69)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:158:10)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)

I have tried to re-install the plugin but didn't help.

My config file is:

{
   ...
   "accessories": [
       ...
       {
            "name": "Bedroom Light",
            "timeout": 5000,
            "interval": 60000,
            "ctforcolor": false,
            "blocking": false,
            "split": false,
            "platform": "Yeelighter"
        }
   ]
}

Any ideas what is wrong?

@cellcortex
Copy link
Owner

sorry - fixed in 2.3.5

@slavikme
Copy link
Author

slavikme commented Dec 6, 2020

Works perfectly now. Thank you!

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

No branches or pull requests

2 participants