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

Sonos fails to initialize #3

Open
billburgess opened this issue Nov 4, 2015 · 4 comments
Open

Sonos fails to initialize #3

billburgess opened this issue Nov 4, 2015 · 4 comments

Comments

@billburgess
Copy link

Using same config as before, but under new home bridge plugin, Sonos fails to initialize.

Loading 1 platforms...
[Speaker] Initializing Sonos platform...
Loading legacy platform Sonos
/usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Sonos.js:66
this.name = this.description["roomName"] + " " + this.config["name"];
^

TypeError: Cannot read property 'roomName' of undefined
at Object.SonosAccessory (/usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Sonos.js:66:33)
at new (/usr/local/lib/node_modules/homebridge-legacy-plugins/index.js:36:16)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:194:32)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:34:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:22:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)

@nfarina
Copy link
Owner

nfarina commented Nov 4, 2015

I suspect this was caused by #1 - could you update and try again?

@billburgess
Copy link
Author


Loaded config.json with 3 accessories and 1 platforms.

Loading 1 platforms...
[Speaker] Initializing Sonos platform...
Loading legacy platform Sonos
/usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Sonos.js:66
this.name = this.description["roomName"] + " " + this.config["name"];
^

TypeError: Cannot read property 'roomName' of undefined
at Object.SonosAccessory (/usr/local/lib/node_modules/homebridge-legacy-plugins/platforms/Sonos.js:66:33)
at new (/usr/local/lib/node_modules/homebridge-legacy-plugins/index.js:36:16)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:195:32)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:35:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:23:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)

@billburgess
Copy link
Author

I updated and it still has the same error.

@nfarina
Copy link
Owner

nfarina commented Nov 5, 2015

Sorry, I meant update homebridge main, not this repo :)

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