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
New Option "-X" for multiple instances #1866
Conversation
Great, pls add this option in HB. |
Yeahhh, thank you very much, that you've made this great feature so fast. Please add this Option to Homebridge! |
I completely agree! Please add this Feature to Homebridge! |
Great idea. I hope it will come in next version of Homebridge. |
Really Great! |
Hello, Please take it to the HB Thank you |
Great idea, please add this to the homebridge! 👍 |
is there a way to install it already? |
@nfarina a merge would be great, waiting for this feature to to problems with one plugin. |
Instead of an argument passed in on launch, can we switch to put this as an array of paths in config.json? That way this setting can be there more permanent and avoids comma separated list which a lot of people can mess up. |
Is the method with passing paths into config.json not "too late" for homebridge? An argument passed in on launch prevent homebridge to load any other plugins which is listed after -X so we don't need to wait for config.json to load |
@KhaosT I think if someone can handle several instances he can handle -X ;-) |
This sounds really great! Please add it to Homebridge 👍 |
is a good idea 👍 |
really useful! |
like this idea, need it in homebridge. |
I would also be very happy about this feature in the official Homebridge. Please take it. |
@KhaosT so why still no pull |
I still think this should live in config file instead of a launch parameter. Regarding the order of operation, I mean we can change that if necessary. I’ll try to write something later today and see how it goes. |
that sounds good, but as i said, to get the advantages i listed above, homebridge should check first which plugins we only want to load before loading all installed plugins |
I would prefer a config.json solution as well, over a command-line option. This would make for simpler system management, as all plugins would still be installed in one place, and only the configuration needs to be changed between instances. Rather than introducing a new key, would it be possible to use the existing
|
I agree with @ebaauw. a config.json solution would be a better choice. |
Even with -x solution the plugins are still installed in the same place. Its just a edition to the already existing way to load plugins. For now I think it would be the best solution. Maybe for later it should be on the to do list. |
Great idea! i hope it will be added to the homebridge! |
Its great lot of people waiting for this, but nothings is happening. However a Logo is getting merged ;-) |
That is really a shame. I thought about the last answer from @KhaosT
The now speed in the topic comes but unfortunately it does not seem to be the case. Maybe we have to ask the boss .-) |
A new option has been added (-X) that allows only certain plugins to be loaded to avoid huge memory usage
Example (/etc/default/homebridge-instance)
(i.e. this will only load homebridge-alexa)
Adding the plugin name after -X allows only to load the given plugin, you can also list several plugins (you just have to separate it with a comma, like -X homebridge-alexa,homebridge-hue etc.)
Another advantage is that your homebridge instances will load noticeably faster, feels three times faster than without "-X" AND in my case I have 30% less memory usage than without "-X"
The plugins are loaded "globally", so it will be always possible with "-g" to continue installing or updating plugins
The -X option just insert the added plugin name(s) to the already existing paths, so it works on every system