{"action":"created","issue":{"url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/78","repository_url":"https://api.github.com/repos/merdok/homebridge-webos-tv","labels_url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/78/comments","events_url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/78/events","html_url":"https://github.com/merdok/homebridge-webos-tv/issues/78","id":389061367,"node_id":"MDU6SXNzdWUzODkwNjEzNjc=","number":78,"title":"Can't get config to work","user":{"login":"PelagicDev","id":2034140,"node_id":"MDQ6VXNlcjIwMzQxNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2034140?v=4","gravatar_id":"","url":"https://api.github.com/users/PelagicDev","html_url":"https://github.com/PelagicDev","followers_url":"https://api.github.com/users/PelagicDev/followers","following_url":"https://api.github.com/users/PelagicDev/following{/other_user}","gists_url":"https://api.github.com/users/PelagicDev/gists{/gist_id}","starred_url":"https://api.github.com/users/PelagicDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PelagicDev/subscriptions","organizations_url":"https://api.github.com/users/PelagicDev/orgs","repos_url":"https://api.github.com/users/PelagicDev/repos","events_url":"https://api.github.com/users/PelagicDev/events{/privacy}","received_events_url":"https://api.github.com/users/PelagicDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-09T20:36:09Z","updated_at":"2018-12-10T15:47:16Z","closed_at":"2018-12-10T15:42:40Z","author_association":"NONE","body":"I'm trying to get the config setup to connect to my TV and I'm clearly missing something. I used [this guide](https://timleland.com/setup-homebridge-to-start-on-bootup/) to setup homebridge, so my config.json is located in `/var/homebridge/` directory instead of `/home/pi/.homebridge`.\r\n\r\nHere's my accessory config:\r\n```\r\n\"accessories\": [\r\n {\r\n      \"accessory\": \"webostv\",\r\n      \"name\": \"My webOS TV\",\r\n      \"ip\": \"192.168.1.27\",\r\n      \"mac\": \"XXXXXXXXXXX\",\r\n      \"keyFile\": \"\",\r\n      \"volumeControl\": \"slider\",\r\n      \"channelControl\": false,\r\n      \"mediaControl\": false,\r\n      \"pollingEnabled\": true,\r\n      \"appSwitch\":[\r\n         \"com.webos.app.hdmi2\",\r\n         \"com.webos.app.externalinput.component\"\r\n      ]\r\n    }\r\n  ],\r\n```\r\n\r\nHere is the log file for the error:\r\n```\r\nDec 09 20:21:16 raspberrypi systemd[1]: Started Node.js HomeKit Server.\r\nDec 09 20:21:18 raspberrypi homebridge[4544]: [2018-12-9 20:21:18] Loaded config.json with 1 accessories and 1 platforms.\r\nDec 09 20:21:18 raspberrypi homebridge[4544]: [2018-12-9 20:21:18] ---\r\nDec 09 20:21:18 raspberrypi homebridge[4544]: [2018-12-9 20:21:18] Loaded plugin: homebridge-neato\r\nDec 09 20:21:18 raspberrypi homebridge[4544]: [2018-12-9 20:21:18] Registering platform 'homebridge-neato.NeatoVacuumRobot'\r\nDec 09 20:21:18 raspberrypi homebridge[4544]: [2018-12-9 20:21:18] ---\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] Loaded plugin: homebridge-webos-tv\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] Registering accessory 'homebridge-webos-tv.webostv'\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] ---\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] Loading 1 platforms...\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] [NeatoVacuumRobot] Initializing NeatoVacuumRobot platform...\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: Sun, 09 Dec 2018 20:21:19 GMT homebridge-neato Extra Care Navigation: 1\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: Sun, 09 Dec 2018 20:21:19 GMT homebridge-neato Get all robots\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] Loading 1 accessories...\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: [2018-12-9 20:21:19] [My webOS TV] Initializing webostv accessory...\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: path.js:28\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     throw new TypeError('Path must be a string. Received ' + inspect(path));\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     ^\r\nDec 09 20:21:19 raspberrypi homebridge[4544]: TypeError: Path must be a string. Received undefined\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at assertPath (path.js:28:11)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at join (path.js:1236:7)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at module.exports (/usr/lib/node_modules/homebridge-webos-tv/node_modules/persist-path/index.js:19:22)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at new LGTV (/usr/lib/node_modules/homebridge-webos-tv/node_modules/lgtv2/index.js:47:16)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at new webosTvAccessory (/usr/lib/node_modules/homebridge-webos-tv/index.js:55:17)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:297:29)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:87:38)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:45:10)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)\r\nDec 09 20:21:19 raspberrypi homebridge[4544]:     at Module._compile (module.js:653:30)\r\nDec 09 20:21:19 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE\r\nDec 09 20:21:19 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.\r\nDec 09 20:21:19 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.\r\n```"},"comment":{"url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/comments/445862749","html_url":"https://github.com/merdok/homebridge-webos-tv/issues/78#issuecomment-445862749","issue_url":"https://api.github.com/repos/merdok/homebridge-webos-tv/issues/78","id":445862749,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTg2Mjc0OQ==","user":{"login":"PelagicDev","id":2034140,"node_id":"MDQ6VXNlcjIwMzQxNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2034140?v=4","gravatar_id":"","url":"https://api.github.com/users/PelagicDev","html_url":"https://github.com/PelagicDev","followers_url":"https://api.github.com/users/PelagicDev/followers","following_url":"https://api.github.com/users/PelagicDev/following{/other_user}","gists_url":"https://api.github.com/users/PelagicDev/gists{/gist_id}","starred_url":"https://api.github.com/users/PelagicDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PelagicDev/subscriptions","organizations_url":"https://api.github.com/users/PelagicDev/orgs","repos_url":"https://api.github.com/users/PelagicDev/repos","events_url":"https://api.github.com/users/PelagicDev/events{/privacy}","received_events_url":"https://api.github.com/users/PelagicDev/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T15:47:16Z","updated_at":"2018-12-10T15:47:16Z","author_association":"NONE","body":"Yeah, I actually I had tried it that was as well and got the same error. Could that error have anything to do with permissions from the `Homebridge` system user?"}}
{"actor":{"display_login":"PelagicDev"}}