Skip to content

Latest commit

 

History

History
170 lines (123 loc) · 8.34 KB

README.md

File metadata and controls

170 lines (123 loc) · 8.34 KB

Logo

ioBroker Homebridge accessories manager

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

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.

Description

This adapter provides three different modes:

Default (Wrapper) Mode

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 configuration in the JSON-editor (see Plugin descriptions). After this, all Homebridge objects will be created in ioBroker too and all writable objects can be 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

Local-Homebridge-Mode

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!

Global-Homebridge-Mode

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 Homebridge installation 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!

Following plugins were tested in Default mode

  • homebridge-chamberlain v1.0.1 - plugin for Chamberlain garage door openers with MyQ
  • homebridge-doorbird v0.0.4 - Plugin for Doorbird
  • homebridge-dyson-link v2.2.2 - Dyson Link devices
  • homebridge-edomoticz v2.1.11 - A fully-fledged up-to-date Plugin for Domoticz
  • homebridge-Fibaro-HC2 v2.1.5 - Fibaro HomeCenter integration
  • homebridge-homee v0.2.4 - A fully-fledged up-to--date Plugin for Homee
  • homebridge-ikea-tradfri-gateway v1.0.26 - Tradfri
  • homebridge-noolite v0.0.29 - Noolite via USB MTRF-64 or МТRF-64 modules
  • homebridge-platform-wemo v1.0.1 - Belkin WeMo Platform plugin
  • homebridge-seasons v1.0.1 - A plugin to display the current season of the year.
  • homebridge-vera v0.8.2 - VeraLink is an application for Z-Wave accessories from Vera (Node.js 8.11.3) ... and many more

TODO

  • Tests
  • More documentation?!

Changelog

4.0.2 (2021-05-08)

  • (Apollon77) prevent warnings in js-controller 3.3

4.0.1 (2021-03-24)

  • (Apollon77) update homebridge and wrapper to 1.3.4 (latest as of today). IMPORTANT: Requires also homebridge 1.3.x installed when using global mode and local mode will update to 1.3.x too! Check your plugins for updates!
  • (UncleSamSwiss) Add an experimental version of new plugin selection and configuration tab - TRY IT OUT!
  • (Apollon77) IMPORTANT: Configurations in local/global mode with child bridges will NOT work because ioBroker can not access the data on the child bridge processes!

3.0.2 (2020-11-29)

  • (Apollon77) update homebridge in wrapper to 1.1.6 (latest as of today)

3.0.1 (2020-08-08)

  • (Apollon77) set a very high limit (again) on allowed accessories and services because irrelevant

3.0.0 (2020-08-04)

  • (Apollon77) BREAKING: ONLY WORKS WITH HOMEBRIDGE 1.1.x+ AND Node JS >=10.17.0!! Make sure plugins support it AND homebridge is updated to 1.1.x when you use the Global Mode!

1.1.2 (2019-07-08)

  • (Apollon77) Allow more then 149 accessories in wrapper mode

1.1.1 (2019-07-05)

  • (Apollon77) Add option to update NPM modules in Admin. Reinstall will happen after saving settings
  • (Apollon77) Enhance NPM installation handling
  • (Apollon77) Allow to specify special version of homebridge NPM packages using name@version
  • (Apollon77) Allow to specify homebridge command line options. They will be added to the command line arguments (Some plugins need that or special features are only available with it)
  • (Apollon77) Add "Local" mode that installs an own homebridge and run it as bridge

1.0.1 (2019-01-16)

  • (SchumyHao) Add Chinese support

1.0.0 (WIP)

  • (Apollon77) add polling interval to global mode
  • (Apollon77) add option to use insecure flag in wrapper mode

0.4.5 (2018.08.21)

  • (Apollon77) issues fixed

0.4.4 (2018.08.07)

  • (Apollon77) corrected automatic role determination and bugs fixed

0.4.2 (2018.06.25)

  • (Apollon77) Fix for global mode

0.4.1 (2018.06.21)

  • (Apollon77) option to poll values from the plugins added and other optimizations

0.3.1 (2018.06.20)

  • (kirovilya) Fixed a bug in global mode that values were not reported back to iOS devices

0.3.0 (2018.06.20)

  • (bluefox) Support of ham plugins was added

0.2.6 (2018.06.19)

  • (Apollon77) Updates for Homebridge-Wrapper

0.2.5 (2018.06.18)

  • (Apollon77) Catch all console logs from Homegridge and make available as debug log

0.2.4 (2018.06.18)

  • (Apollon77) Updates for Homebridge-Wrapper

0.2.3 (2018.06.17)

  • (Apollon77) Updates for Homebridge-Wrapper

0.2.2 (2018.06.17)

  • (Bluefox) Fixes for JSON editor in Firefox and Chrome

0.2.0/0.2.1 (2018.06.17)

  • (Apollon77) Public test version with both modes
  • (Bluefox) Admin3

0.1.0 (2018.06.09)

  • (Apollon77) Update for working mode 1

0.0.1 (2018.03.24)

  • (kirovilya) initial commit

License

The MIT License (MIT)

Copyright (c) 2018-2021 Apollon77 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 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 IN THE SOFTWARE.