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

NPM @scope plugins #2263

Closed
bluephlame opened this issue Jul 18, 2019 · 2 comments
Closed

NPM @scope plugins #2263

bluephlame opened this issue Jul 18, 2019 · 2 comments
Labels

Comments

@bluephlame
Copy link

Does homebridge look for plugins that are scoped?

I have had to update a plugin to support a later version of homebridge and node. The developer hasn't accepted my pull request but I Want to start using it in an automated build.
I've globally installed it

 npm list -g --depth=0

/usr/local/lib
├── @bluephlame/homebridge-gpio-garagedoor@0.2.3
├── @bluephlame/homebridge-mqtt-switch-tasmota@0.9.5
├── homebridge@0.4.50
├── homebridge-izone3-aircon-platform@1.0.1
├── homebridge-mqtt-switch-tasmota@0.9.5 (github:bluephlame/homebridge-mqtt-switch-tasmota#d7032b68e5c0d7cf6dc84962972e5943375dab2f)
├── npm@6.9.0
└── pm2@3.5.1

but then get the following error
0|homebridge | Error: The requested accessory 'GPIOGarageDoor' was not registered by any plugin.

It appears that the plugin is not being discovered by homebridge. Any thoughts on how to fix this?

@bluephlame
Copy link
Author

I think I found the issue in /lib/plugin.js
Plugin.installed = function() does not search for @ directories that might have scoped plugins.

I have copied them out as a fix but will need to work on a solution that is automated.

@stale
Copy link

stale bot commented Jan 14, 2020

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

@stale stale bot added the stale label Jan 14, 2020
@stale stale bot closed this as completed Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant