Use Homebridge plugins in ioBroker or run a global installed Homebridge as ioBroker adapter.All States from Homebridge will be available in ioBroker too and can also be controlled there.
This adapter provides three different modes:
In the default mode the adapter allows you to use homebridge Plugin Modules directly.You can explore all available plugins at the NPM website by searching for the keyword homebridge-plugin
.
You simply add the list of modules to the Adapter configuration and provide the configurationin the JSON-editor (see Plugin descriptions).After this, all Homebridge objects will be created in ioBroker too and all writable objects canbe changed too.
IMPORTANT: This mode allows to use the device integrations of the provided homebridge plugins. No "bridge" is provided that can be used by the Home App!
A link of successfully tried plugins with examples can be found here: https://forum.iobroker.net/viewtopic.php?f=20&t=15021
If you want to have a published bridge to be used by the Home App and want to also interact with it from ioBroker and get the data, but do not already have homebridge installed then use this mode.
The Local mode installs the current compatible version of homebridge and runs it as ioBroker user. You provide the complete homebridge configuration using ioBroker.The installation of the homebridge modules is also done via ioBroker.
IMPORTANT: When using child bridges (new homebridge feature since 1.3.x) the adapter CAN NOT access the data provided by these child bridges! Only the main bridge is accessable!
If you already use Homebridge (Apple OpenSource SmartHome) as a global installation on the host where also ioBroker runs on,then you can use this existing Homebridge installation and start this Homebridgeinstallation as ioBroker process. In this case the Homebridge server is started by ioBroker.Additionally all states from Homebridge are available as states in ioBroker and allow to be controlled from ioBroker.
For this to work you need to provide the location of the systems global node-modules folder. For this call npm root -g. Additionally you need to provide the path of the homebridge configuration directory (usually .homebridge in the "users" folder).
IMPORTANT: ioBroker runs as user "iobroker", but homebridge normally as root or homebridge user (depending on how you installed it). You need to make sure that the homebride "persistance" folder can be accessed by the ioBroker user, else you will see errors that the file can not be saved (which can crash the adapter!)
IMPORTANT: When using child bridges (new homebridge feature since 1.3.x) the adapter CAN NOT access the data provided by these child bridges! Only the main bridge is accessable!
The MIT License (MIT)
Copyright (c) 2018-2021 Apollon77 ingo@fischer-ka.de
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.