webdeck / homebridge-indigo

Homebridge Plugin for Indigo
Apache License 2.0
13 stars 6 forks source link

homebridge-indigo

Homebridge platform plugin for the Indigo home automation server

Supports the following Indigo device types:

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-indigo
  3. Update your configuration file. See sampleconfig.json in this repository for a sample.

More details can be found in this discussion thread.

Configuration

Configuration sample:

    "platforms": [
        {
            "platform": "Indigo",
            "name": "My Indigo Server",
            "protocol": "http",
            "host": "127.0.0.1",
            "port": "8176",
            "path": "",
            "username": "myusername",
            "password": "mypassword",
            "includeActions": true,
            "includeIds": [ "12345", "67890" ],
            "excludeIds": [ "98765", "43210" ],
            "treatAsSwitchIds": [ "13579", "24680" ],
            "treatAsLockIds": [ "112233", "445566" ],
            "treatAsDoorIds": [ "224466", "664422" ],
            "treatAsGarageDoorIds": [ "223344", "556677" ],
            "treatAsMotionSensorIds": [ "336699" ],
            "treatAsContactSensorIds": [ "446688" ],
            "treatAsWindowIds": [ "123123", "456456" ],
            "treatAsWindowCoveringIds": [ "345345", "678678" ],
            "invertOnOffIds": [ "234234", "567567" ],
            "thermostatsInCelsius": false,
            "accessoryNamePrefix": "",
            "listenPort": 8177
        }
    ]

Fields:

Note that if you specify both "includeIds" and "excludeIds", then only the IDs that are in "includeIds" and missing from "excludeIds" will be mapped to HomeKit devices. Typically, you would only specify one or the other, not both of these lists. If you just want to expose everything, then omit both of these keys from your configuration.

Also note that any Indigo devices or actions that have Remote Display unchecked in Indigo will NOT be exposed to HomeKit, because Indigo excludes those devices from its RESTful API.

HomeKit limits bridges to 100 devices, so if you have more than 99 Indigo devices (and action groups, if you're including them), then you will want to use includeIds or excludeIds to get your list down to under 100. homebridge-indigo will only include up to the first 99 accessories discovered.