{"action":"opened","issue":{"url":"https://api.github.com/repos/svrooij/node-xiaomi2mqtt/issues/4","repository_url":"https://api.github.com/repos/svrooij/node-xiaomi2mqtt","labels_url":"https://api.github.com/repos/svrooij/node-xiaomi2mqtt/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/svrooij/node-xiaomi2mqtt/issues/4/comments","events_url":"https://api.github.com/repos/svrooij/node-xiaomi2mqtt/issues/4/events","html_url":"https://github.com/svrooij/node-xiaomi2mqtt/issues/4","id":276565917,"number":4,"title":"Can't use the device list","user":{"login":"martin67","id":5981471,"avatar_url":"https://avatars2.githubusercontent.com/u/5981471?v=4","gravatar_id":"","url":"https://api.github.com/users/martin67","html_url":"https://github.com/martin67","followers_url":"https://api.github.com/users/martin67/followers","following_url":"https://api.github.com/users/martin67/following{/other_user}","gists_url":"https://api.github.com/users/martin67/gists{/gist_id}","starred_url":"https://api.github.com/users/martin67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin67/subscriptions","organizations_url":"https://api.github.com/users/martin67/orgs","repos_url":"https://api.github.com/users/martin67/repos","events_url":"https://api.github.com/users/martin67/events{/privacy}","received_events_url":"https://api.github.com/users/martin67/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-24T09:55:21Z","updated_at":"2017-11-24T09:55:21Z","closed_at":null,"author_association":"NONE","body":"I get an error when I try to include a list of devices:\r\n\r\n```\r\nmartin@mahler:~$ xiaomi2mqtt -d /etc/xiaomi2mqtt.conf`\r\n2017-11-24 10:46:16.793 <info>  xiaomi2mqtt 1.0.0 starting\r\n2017-11-24 10:46:16.850 <info>  Loading devices from: /etc/xiaomi2mqtt.conf\r\n/etc/xiaomi2mqtt.conf:2\r\n  \"device_id\": \"Nice name\",\r\n             ^\r\n\r\nSyntaxError: Unexpected token :\r\n    at createScript (vm.js:80:10)\r\n    at Object.runInThisContext (vm.js:139:10)\r\n    at Module._compile (module.js:599:28)\r\n    at Object.Module._extensions..js (module.js:646:10)\r\n    at Module.load (module.js:554:32)\r\n    at tryModuleLoad (module.js:497:12)\r\n    at Function.Module._load (module.js:489:3)\r\n    at Module.require (module.js:579:17)\r\n    at require (internal/module.js:11:18)\r\n    at fs.access (/usr/local/lib/node_modules/xiaomi2mqtt/src/bridge.js:21:19)\r\nmartin@mahler:~$\r\n```\r\n\r\nThe file looks like this:\r\n```\r\n{\r\n  \"device_id\": \"Nice name\",\r\n  \"158d00016c8dfb\": \"Sovrum\",\r\n  \"158d0001b8f5ed\": \"Ivars rum\",\r\n  \"158d0001ddae03\": \"Märtas rum\",\r\n  \"158d00019cb8ff\": \"Nils rum\",\r\n  \"158d0001c03460\": \"Källartrapp\",\r\n  \"158d00018b39c4\": \"TV\"\r\n}\r\n```\r\nEverything else works fine (when I don't include the file)\r\n\r\n"}}
{"actor":{"display_login":"martin67"}}