Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help setting up config.json #7

Open
Silentbob101 opened this issue Jan 17, 2018 · 1 comment
Open

Help setting up config.json #7

Silentbob101 opened this issue Jan 17, 2018 · 1 comment

Comments

@Silentbob101
Copy link

Silentbob101 commented Jan 17, 2018

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
Copy link
Owner

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"
      }
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants