robertklep / homebridge-nefit-easy

DEPRECATED — Homebridge plugin for Nefit Easy™
14 stars 3 forks source link

Help setting up config.json #7

Open Silentbob101 opened 6 years ago

Silentbob101 commented 6 years ago

i cant get my config.json to be read correctly

i have pasted this into a file called config.json in ~/.homebridge/ (xxxx is redacted)

"accessories": [
    ...{
        "accessory": "NefitEasy",
        "name": "thermostaat",
        "options": {
            "serialNumber": "xxxxxxx",
            "accessKey": "xxxx xxxx xxxx xxxx",
            "password": "xxxxxx"
        }
    }
]

this errors out... any help

robertklep commented 6 years ago

The example configuration assumes that you already have an existing config.json file, which is a requirement for Homebridge to run. There's a sample configuration file for Homebridge posted here: https://github.com/nfarina/homebridge/blob/master/config-sample.json

Taking that, here's a configuration setup that you should be able to use:

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
  "description": "Homebridge.",
  "accessories": [
    {
      "accessory": "NefitEasy",
      "name": "thermostaat",
      "options": {
        "serialNumber": "xxxxxxx",
        "accessKey": "xxxx xxxx xxxx xxxx",
        "password": "xxxxxx"
      }
    }
  ]
}