{"action":"created","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/475","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/475/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/475/events","html_url":"https://github.com/nfarina/homebridge/issues/475","id":127281578,"number":475,"title":"config file with 2 or more plugins","user":{"login":"miabilabs","id":16695658,"avatar_url":"https://avatars.githubusercontent.com/u/16695658?v=3","gravatar_id":"","url":"https://api.github.com/users/miabilabs","html_url":"https://github.com/miabilabs","followers_url":"https://api.github.com/users/miabilabs/followers","following_url":"https://api.github.com/users/miabilabs/following{/other_user}","gists_url":"https://api.github.com/users/miabilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/miabilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miabilabs/subscriptions","organizations_url":"https://api.github.com/users/miabilabs/orgs","repos_url":"https://api.github.com/users/miabilabs/repos","events_url":"https://api.github.com/users/miabilabs/events{/privacy}","received_events_url":"https://api.github.com/users/miabilabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T18:05:30Z","updated_at":"2016-01-18T18:33:03Z","closed_at":null,"body":"Sorry if this is a completely beginner question. I couldn't find the answer anywhere, so maybe it is or I'm missing it...\r\n\r\nI'm trying to write my config.json file for use with the legacy plugins plugin and the Sonos plugin. More specifically I'm using Smartthings and would like to support Sonos via homebridge.  My config.json looks like the below, but this is throwing up errors in homebridge. Am I doing this correctly or at least on the right path? I think I might have too many brackets?  Thanks!\r\n\r\n{\r\n\"bridge\": {\r\n\"name\": \"Homebridge\",\r\n\"username\": \"D0:52:A8:00:7B:70\",\r\n\"port\": 39500,\r\n\"pin\": \"031-45-154\"\r\n},\r\n\"description\": \"JSON API\",\r\n        \"platforms\": [\r\n            {\r\n                \"platform\": \"SmartThings\",\r\n                \"name\": \"SmartThings\",\r\n                \"app_id\": \"0110f22b-8b93-45c9-96e8-70fcb9c90dbc\",\r\n                \"access_token\": \"bb55402d-2828-4430-962d-79a13e6e717d\"\r\n            }\r\n        ]\r\n{\r\n  \"accessories\": [\r\n    {\r\n      \"accessory\": \"Sonos\",\r\n      \"name\": \"Kitchen Speakers\",\r\n      \"room\": \"Kitchen\"\r\n    }\r\n    {\r\n      \"name\": \"Living Room Speakers\",\r\n      \"room\": \"Living Room\"\r\n    }\r\n ]\r\n} \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/comments/172617080","html_url":"https://github.com/nfarina/homebridge/issues/475#issuecomment-172617080","issue_url":"https://api.github.com/repos/nfarina/homebridge/issues/475","id":172617080,"user":{"login":"MrCoBalt","id":16764096,"avatar_url":"https://avatars.githubusercontent.com/u/16764096?v=3","gravatar_id":"","url":"https://api.github.com/users/MrCoBalt","html_url":"https://github.com/MrCoBalt","followers_url":"https://api.github.com/users/MrCoBalt/followers","following_url":"https://api.github.com/users/MrCoBalt/following{/other_user}","gists_url":"https://api.github.com/users/MrCoBalt/gists{/gist_id}","starred_url":"https://api.github.com/users/MrCoBalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrCoBalt/subscriptions","organizations_url":"https://api.github.com/users/MrCoBalt/orgs","repos_url":"https://api.github.com/users/MrCoBalt/repos","events_url":"https://api.github.com/users/MrCoBalt/events{/privacy}","received_events_url":"https://api.github.com/users/MrCoBalt/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T18:33:03Z","updated_at":"2016-01-18T18:33:03Z","body":"Yeah, I found this could be better documented too and I ran into the same thing integrating like four plugins together in my config.\r\n\r\nhttp://jsonlint.com is definitely your friend here though. I ran your config through it and it needed a `]` or two removed, and some `,` added:\r\n```json\r\n{\r\n\t\"bridge\": {\r\n\t\t\"name\": \"Homebridge\",\r\n\t\t\"username\": \"D0:52:A8:00:7B:70\",\r\n\t\t\"port\": 39500,\r\n\t\t\"pin\": \"031-45-154\"\r\n\t},\r\n\t\"description\": \"JSON API\",\r\n\r\n\t\"platforms\": [{\r\n\t\t\"platform\": \"SmartThings\",\r\n\t\t\"name\": \"SmartThings\",\r\n\t\t\"app_id\": \"0110f22b-8b93-45c9-96e8-70fcb9c90dbc\",\r\n\t\t\"access_token\": \"bb55402d-2828-4430-962d-79a13e6e717d\"\r\n\t}],\r\n\t\"accessories\": [{\r\n\t\t\"accessory\": \"Sonos\",\r\n\t\t\"name\": \"Kitchen Speakers\",\r\n\t\t\"room\": \"Kitchen\"\r\n\t}, {\r\n\t\t\"name\": \"Living Room Speakers\",\r\n\t\t\"room\": \"Living Room\"\r\n\t}]\r\n}\r\n```"}}