Page 1 of 1

Config to add generic platforms?

PostPosted: Sat Dec 10, 2016 10:49 am
by blysik
Hi,

I'm considering installing homebridge-filesensor to try and expose my window/door contact sensors to homekit. Unfortunately, with HBB, that means creating a new type (somethineglike 'Homebridge Filesensor', similar to what you did for cameras). Since I don't know if you want to do something like this every time a new homebridge plugin comes along, do you want to consider some way to generically add platforms?

Re: Config to add generic platforms?

PostPosted: Sat Dec 10, 2016 11:05 am
by Colorado4Wheeler
In the next release or perhaps the one after I'm already planning on having a way for people to have extra items in their config.json without having to officially support it in Indigo. There are currently over 400 plugins to HB and no way I'm going to even TRY to support them all - but I will build in support where that built in support makes sense and it's actually easier to use HBB to set it up than it is to manipulate the config itself.

It's going to take the form of having an Accessories and Platforms file that you do whatever you want with and when HBB saves the configuration it will read those in to incorporate your customization.

Re: Config to add generic platforms?

PostPosted: Sat Dec 10, 2016 1:16 pm
by durosity
Colorado4Wheeler wrote:
There are currently over 400 plugins to HB


Is there a list somewhere or is that just from the npm library?


Sent from my iPad using Tapatalk

Re: Config to add generic platforms?

PostPosted: Sat Dec 10, 2016 7:10 pm
by Colorado4Wheeler
NPM library.

Re: Config to add generic platforms?

PostPosted: Sun Dec 11, 2016 2:50 am
by durosity
A man of many words.. ;)

Re: Config to add generic platforms?

PostPosted: Mon Dec 12, 2016 5:30 pm
by blysik
Do you have a dev branch where you'd potentially accept pull requests? Or is master on github the place? I'm eagerly awaiting the general append functionality, and considering ways I could contribute back.

Re: Config to add generic platforms?

PostPosted: Mon Dec 12, 2016 5:47 pm
by Colorado4Wheeler
At this point I am not opening up the plugin to contributions for several reasons, one of which is that the libraries I wrote for this plugin also drive my other plugins and if one gets messed up then there goes the whole lot :) . Another big reason is that I only to sync to Git when the release has been patched to a working level, to do collaboration requires that I am constantly syncing every single change up to Git.

I'm working on that functionality but I'm also dealing with incorporating in the full HB installation into the plugin, something Jay and Matt want quite a bit for new users and, frankly, it improves the entire experience in a number of ways anyway.

I suspect I'll have the release done this week. There are several folks, myself included, that would like to be able to run HBB but also have it take into account their other HB plugins too.

Re: Config to add generic platforms?

PostPosted: Mon Dec 12, 2016 5:56 pm
by blysik
Understood.

Any way to send you a beer? :D

Re: Config to add generic platforms?

PostPosted: Mon Dec 12, 2016 6:04 pm
by Colorado4Wheeler
LOL, not at this point.

Re: Config to add generic platforms?

PostPosted: Tue Dec 20, 2016 4:40 pm
by Colorado4Wheeler
Ok, this feature should now work in the just release RC6.

Re: Config to add generic platforms?

PostPosted: Tue Dec 20, 2016 5:57 pm
by blysik
Could you give a little description on the best steps to get from a HBB + camera device config, to a the best "Homebridge Indigo Server + Homebridge Custom Server" configuration? I'm eager to start trying some of the other homebridge plugins, but I want to make this transition as cleanly as I can.

Thanks!

Re: Config to add generic platforms?

PostPosted: Tue Dec 20, 2016 8:55 pm
by Colorado4Wheeler
It's pretty much automatic when you upgrade. Back up your config file to be safe but I tried to make the upgrade painless.

Re: Config to add generic platforms?

PostPosted: Wed Dec 21, 2016 11:12 am
by blysik
So I created a Custom server device. If I want to add additional plugins, I can just manually edit ~/.homebridge/config.json ?

Re: Config to add generic platforms?

PostPosted: Wed Dec 21, 2016 1:24 pm
by Colorado4Wheeler
Yes, exactly. The built in is 100% for HB-Indigo while the custom is 100% for NOT HB-Indigo and any changes you make will be re-applied when you save the config again from within HBB.