Schlauer-Hax / homebridge-iobroker

Apache License 2.0
6 stars 0 forks source link

homebridge-iobroker2

This plugin uses simple-api to provide iobroker states to homebridge as a Lightbulb

Installation

  1. Install Homebridge by following the instructions.
  2. Install this plugin using Homebridge Config UI X, or by running npm install -g homebridge-iobroker2.
  3. Install and configure the simple-api on your running iobroker server.
  4. Add the configuration to your homebridge config.json.

Configuration

In most cases, simply adding this plugin to the homebridge config.json and changing the devices states will be enough:

"platforms": [
  {
    "platform" : "IoBroker",
    "name" : "IoBroker",
    "url": "192.168.xx.xx",
    "port": 8087,
    "devices": [
        {
            "name": "FirstState",
            "onstate": "0_userdata.0.firststate",
            "colortemp": "0_userdata.0.colortemp",
            "brightness": "0_userdata.0.bri"
        },
        {
            "name": "SecondState",
            "onstate": "0_userdata.0.secondstate"
        },
        {
            "name": "Switch",
            "onstate": "0_userdata.0.testswitch",
            "switch": true
        }
    ]
}
]