# DEPRECATED

**NOTE: This plugin is now deprecated in favor of https://www.npmjs.com/package/homebridge-bond now that this repo has been migrated there. Please use `homebridge-bond` moving forward.**

Bond plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the [Bond V2 API](http://docs-local.appbond.com). In oder to use this plugin, you'll need to make sure your Bond has been updated to firmware v2. If you are still on v1 (using the Bond Bridge app), you'll need to down the new [Bond Home](https://apps.apple.com/us/app/bond-home/id1447691811) app and update your firmware.

Note: There is an [existing homebridge](https://github.com/evandcoleman/homebridge-bond) plugin for Bond which I considered forking, but because the API is so different, I decided it would be easier to structure the plugin around the new API than refactor the original project. I took a lot cues from the original project, so thank you [@evandcoleman](https://github.com/evandcoleman) for your previous work!

# Installation

1. Install homebridge using: `npm install -g homebridge`
2. Install this plug-in using: `npm install -g homebridge-bond-v2`
3. Update your configuration file. See example `config.json` snippet below.

# Configuration

Configuration sample (edit `~/.homebridge/config.json`):

```
"platforms": [
        {
            "platform": "BondHome",
            "bond_ip_address": "<BOND_IP_ADDRESS>",
            "bond_token": "<BOND_TOKEN>"
        }
    ],
```

To get your Bond IP Address, follow the instructions [here](https://github.com/aarons22/homebridge-bond-v2/wiki/Get-Bond-IP-Address).

`BOND_ID` and `BOND_TOKEN` (Local token) can be found in the app. Go to your Bond settings:

![alt text](./docs/bond-settings.jpeg 'Bond Settings')

You can tap on each row to copy the contents to the clipboard.

# Contact

You can find me on Twitter [@aaronsapp](https://twitter.com/aaronsapp)
