KraigM / HomeBridgeController

Provides a simplified UI for controlling your HomeBridge
87 stars 7 forks source link

Config.json help? Cannot get platform to load. #58

Open emdoc12 opened 8 years ago

emdoc12 commented 8 years ago

As the title says I can't get this working here. My config.json checks out on jsonlint but its not working. Any help would be great.

{ "bridge": { "name": "Homebridge", "username": "D0:00:00:00:00:00", "port": 51826, "pin": "031-45-154" }, "description": "JSON API",

"platforms": [{
    "platform": "SmartThings",
    "name": "SmartThings",
    "app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/",
    "app_id": "XXXXXXX-170f-4793-9e81-a8c239db71d7",
    "access_token": "XXXXXXXX-460f-4c3c-a95b-83437a8102c5",

    "platforms": [{
        "platform": "HomeBridgeControllerLink"
    }]
}]

}

a2sheppy commented 7 years ago

The problem is you've got two "platforms" blocks, nested. There should be one level, like this:

"bridge": {
  "name": "Homebridge",
  "username": "D0:00:00:00:00:00",
  "port": 51826,
  "pin": "031-45-154"
},

"platforms": [{
  "platform": "SmartThings",
  "name": "SmartThings",
  "app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/",
  "app_id": "XXXXXXX-170f-4793-9e81-a8c239db71d7",
  "access_token": "XXXXXXXX-460f-4c3c-a95b-83437a8102c5"
},
{
  "platform" : "HomeBridgeControllerLink"
}]