{"action":"created","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/459","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/459/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/459/events","html_url":"https://github.com/nfarina/homebridge/issues/459","id":124982002,"number":459,"title":"Problem Authenticating with Smartthings","user":{"login":"timo55","id":16546998,"avatar_url":"https://avatars.githubusercontent.com/u/16546998?v=3","gravatar_id":"","url":"https://api.github.com/users/timo55","html_url":"https://github.com/timo55","followers_url":"https://api.github.com/users/timo55/followers","following_url":"https://api.github.com/users/timo55/following{/other_user}","gists_url":"https://api.github.com/users/timo55/gists{/gist_id}","starred_url":"https://api.github.com/users/timo55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timo55/subscriptions","organizations_url":"https://api.github.com/users/timo55/orgs","repos_url":"https://api.github.com/users/timo55/repos","events_url":"https://api.github.com/users/timo55/events{/privacy}","received_events_url":"https://api.github.com/users/timo55/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nfarina/homebridge/labels/plugin%20issue","name":"plugin issue","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2016-01-05T14:54:44Z","updated_at":"2016-01-23T16:53:41Z","closed_at":null,"body":"Hi, similarly to issue listed as closed here: https://github.com/nfarina/homebridge/issues/17#issuecomment-168808027\r\n\r\nThe difference with the above issue is the underscores are in place in the app_id / access_token lines.\r\nI'd appreciate any help here, no search online has found any other solution to try (I'm quite new to this!).\r\nUsing Raspbian on pi 2.\r\nI have all set up and looks fine until the following:\r\n\r\nStarting HomeBridge server...\r\nLoading 1 platforms...\r\n[SmartThings] Initializing SmartThings platform...\r\n[SmartThings] Fetching SmartThings devices...\r\n[SmartThings] There was a problem authenticating with SmartThings.\r\n\r\nThe app-id and token are correct.\r\nHere is my config.json:\r\n\r\n{\r\n\"bridge\": {\r\n\"name\": \"Homebridge\",\r\n\"username\": \"CC:22:3D:E3:CE:30\",\r\n\"port\": 51826,\r\n\"pin\": \"031-45-154\"\r\n},\r\n\r\n    \"description\": \"JSON API\",\r\n    \"platforms\": [{\r\n            \"platform\": \"SmartThings\",\r\n            \"name\": \"SmartThings\",\r\n            \"app_id\": \"xxxxxxx\",\r\n            \"access_token\": \"xxxxxxx\"\r\n    }]\r\n}\r\n\r\nMany thanks!\r\n\r\nT"},"comment":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/comments/174199991","html_url":"https://github.com/nfarina/homebridge/issues/459#issuecomment-174199991","issue_url":"https://api.github.com/repos/nfarina/homebridge/issues/459","id":174199991,"user":{"login":"timo55","id":16546998,"avatar_url":"https://avatars.githubusercontent.com/u/16546998?v=3","gravatar_id":"","url":"https://api.github.com/users/timo55","html_url":"https://github.com/timo55","followers_url":"https://api.github.com/users/timo55/followers","following_url":"https://api.github.com/users/timo55/following{/other_user}","gists_url":"https://api.github.com/users/timo55/gists{/gist_id}","starred_url":"https://api.github.com/users/timo55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timo55/subscriptions","organizations_url":"https://api.github.com/users/timo55/orgs","repos_url":"https://api.github.com/users/timo55/repos","events_url":"https://api.github.com/users/timo55/events{/privacy}","received_events_url":"https://api.github.com/users/timo55/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T16:53:41Z","updated_at":"2016-01-23T16:53:41Z","body":"Hi, unfortunately I already had the UK server address amended & auth error still occurs - glad it works for you now tho!\n\nTim\n\n\n> On 23 Jan 2016, at 16:41, mavis46 <notifications@github.com> wrote:\n> \n> I have solved the auth error. Second time around I forgot to amend the SmartThings.js file for the UK - see below. Hence why it worked on my first install but didn't work on the second as I followed a different set of instructions.\n> \n> Now we need to make some changes to the smartthings.js file for the UK/EU servers:\n> cd /usr/local/lib/node_modules/homebridge-legacy-plugins/platforms\n> nano SmartThings.js\n> Find the following URL in the file:\n> https://graph.api.smartthings.com <https://graph.api.smartthings.com/>\n> and replace it with:\n> https://graph-eu01-euwest1.api.smartthings.com <https://graph-eu01-euwest1.api.smartthings.com/>\n> In my version of the file, there was only one instance of this. Ctrl-O and Enter to save the file,\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/nfarina/homebridge/issues/459#issuecomment-174198905>.\n> \n\n"}}