{"action":"created","issue":{"url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/12","repository_url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2","labels_url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/12/comments","events_url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/12/events","html_url":"https://github.com/ilcato/homebridge-Fibaro-HC2/issues/12","id":163019638,"number":12,"title":"Version 0.6.6 - TypeError: Cannot read property 'host' of null","user":{"login":"lboue","id":938089,"avatar_url":"https://avatars.githubusercontent.com/u/938089?v=3","gravatar_id":"","url":"https://api.github.com/users/lboue","html_url":"https://github.com/lboue","followers_url":"https://api.github.com/users/lboue/followers","following_url":"https://api.github.com/users/lboue/following{/other_user}","gists_url":"https://api.github.com/users/lboue/gists{/gist_id}","starred_url":"https://api.github.com/users/lboue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboue/subscriptions","organizations_url":"https://api.github.com/users/lboue/orgs","repos_url":"https://api.github.com/users/lboue/repos","events_url":"https://api.github.com/users/lboue/events{/privacy}","received_events_url":"https://api.github.com/users/lboue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-29T20:31:56Z","updated_at":"2016-07-05T06:24:40Z","closed_at":null,"body":"Hello,\r\n\r\nI am trying to use the latest version of this plugin on my Ubuntu PC.\r\n```\r\nnpm install -g homebridge-fibaro-hc2\r\n```\r\nBut when I start homebridge I am getting a TypeError: \"Cannot read property 'host' of null \"\r\n```\r\nhomebridge\r\n*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.\r\n*** WARNING *** Please fix your application to use the native API of Avahi!\r\n*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>\r\n*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.\r\n*** WARNING *** Please fix your application to use the native API of Avahi!\r\n*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>\r\n[2016-06-29 19:46:01] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-fibaro-hc2' since we already loaded the same plugin from '/usr/lib/node_modules/homebridge-fibaro-hc2'.\r\n[2016-06-29 19:46:01] Loaded plugin: homebridge-fibaro-hc2\r\n[2016-06-29 19:46:01] Registering platform 'homebridge-fibaro-hc2.FibaroHC2'\r\n[2016-06-29 19:46:01] ---\r\nLoad homebridge-fibaro-hc2.FibaroHC2\r\n/usr/lib/node_modules/homebridge-fibaro-hc2/index.js:80\r\n      this.fibaroClient = require('./lib/fibaro-api').createClient(config[\"host\"], config[\"username\"], config[\"password\"]);\r\n                                                                         ^\r\n\r\nTypeError: Cannot read property 'host' of null\r\n    at new FibaroHC2Platform (/usr/lib/node_modules/homebridge-fibaro-hc2/index.js:80:71)\r\n    at Server._loadDynamicPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:294:30)\r\n    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:73:8)\r\n    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)\r\n    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)\r\n    at Module._compile (module.js:541:32)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n```\r\nCan you tell me what is wrong with my setup?\r\n\r\n### Other version\r\nI addition I don't have this error with the 0.5.4 version.\r\n```\r\nubuntu@ubuntu:/media/ubuntu/SD/homebridge$ sudo npm install -g homebridge-fibaro-hc2@0.5.4\r\n/usr/lib\r\n└─┬ homebridge-fibaro-hc2@0.5.4\r\n  └─┬ request@2.72.0\r\n    ├── aws-sign2@0.6.0\r\n    ├── aws4@1.4.1\r\n    ├─┬ bl@1.1.2\r\n    │ └─┬ readable-stream@2.0.6\r\n    │   ├── core-util-is@1.0.2\r\n    │   ├── inherits@2.0.1\r\n    │   ├── isarray@1.0.0\r\n    │   ├── process-nextick-args@1.0.7\r\n    │   ├── string_decoder@0.10.31\r\n    │   └── util-deprecate@1.0.2\r\n    ├── caseless@0.11.0\r\n    ├─┬ combined-stream@1.0.5\r\n    │ └── delayed-stream@1.0.0\r\n    ├── extend@3.0.0\r\n    ├── forever-agent@0.6.1\r\n    ├─┬ form-data@1.0.0-rc4\r\n    │ └── async@1.5.2\r\n    ├─┬ har-validator@2.0.6\r\n    │ ├─┬ chalk@1.1.3\r\n    │ │ ├── ansi-styles@2.2.1\r\n    │ │ ├── escape-string-regexp@1.0.5\r\n    │ │ ├─┬ has-ansi@2.0.0\r\n    │ │ │ └── ansi-regex@2.0.0\r\n    │ │ ├── strip-ansi@3.0.1\r\n    │ │ └── supports-color@2.0.0\r\n    │ ├─┬ commander@2.9.0\r\n    │ │ └── graceful-readlink@1.0.1\r\n    │ ├─┬ is-my-json-valid@2.13.1\r\n    │ │ ├── generate-function@2.0.0\r\n    │ │ ├─┬ generate-object-property@1.2.0\r\n    │ │ │ └── is-property@1.0.2\r\n    │ │ ├── jsonpointer@2.0.0\r\n    │ │ └── xtend@4.0.1\r\n    │ └─┬ pinkie-promise@2.0.1\r\n    │   └── pinkie@2.0.4\r\n    ├─┬ hawk@3.1.3\r\n    │ ├── boom@2.10.1\r\n    │ ├── cryptiles@2.0.5\r\n    │ ├── hoek@2.16.3\r\n    │ └── sntp@1.0.9\r\n    ├─┬ http-signature@1.1.1\r\n    │ ├── assert-plus@0.2.0\r\n    │ ├─┬ jsprim@1.3.0\r\n    │ │ ├── extsprintf@1.0.2\r\n    │ │ ├── json-schema@0.2.2\r\n    │ │ └── verror@1.3.6\r\n    │ └─┬ sshpk@1.8.3\r\n    │   ├── asn1@0.2.3\r\n    │   ├── assert-plus@1.0.0\r\n    │   ├─┬ dashdash@1.14.0\r\n    │   │ └── assert-plus@1.0.0\r\n    │   ├── ecc-jsbn@0.1.1\r\n    │   ├─┬ getpass@0.1.6\r\n    │   │ └── assert-plus@1.0.0\r\n    │   ├── jodid25519@1.0.2\r\n    │   ├── jsbn@0.1.0\r\n    │   └── tweetnacl@0.13.3\r\n    ├── is-typedarray@1.0.0\r\n    ├── isstream@0.1.2\r\n    ├── json-stringify-safe@5.0.1\r\n    ├─┬ mime-types@2.1.11\r\n    │ └── mime-db@1.23.0\r\n    ├── node-uuid@1.4.7\r\n    ├── oauth-sign@0.8.2\r\n    ├── qs@6.1.0\r\n    ├── stringstream@0.0.5\r\n    ├── tough-cookie@2.2.2\r\n    └── tunnel-agent@0.4.3\r\n\r\nubuntu@ubuntu:/media/ubuntu/SD/homebridge$\r\nubuntu@ubuntu:/media/ubuntu/SD/homebridge$\r\nubuntu@ubuntu:/media/ubuntu/SD/homebridge$ homebridge\r\n*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.\r\n*** WARNING *** Please fix your application to use the native API of Avahi!\r\n*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>\r\n*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.\r\n*** WARNING *** Please fix your application to use the native API of Avahi!\r\n*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>\r\n[2016-06-29 20:16:07] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-fibaro-hc2' since we already loaded the same plugin from '/usr/lib/node_modules/homebridge-fibaro-hc2'.\r\n[2016-06-29 20:16:07] Loaded plugin: homebridge-fibaro-hc2\r\n[2016-06-29 20:16:07] Registering platform 'homebridge-fibaro-hc2.FibaroHC2'\r\n[2016-06-29 20:16:07] ---\r\nScan this code with your HomeKit App on your iOS device to pair with Homebridge:\r\n                      \r\n    ┌────────────┐    \r\n    │ 031-45-154 │    \r\n    └────────────┘    \r\n                      \r\n[2016-06-29 20:16:07] Homebridge is running on port 51826.\r\n```\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/comments/230396484","html_url":"https://github.com/ilcato/homebridge-Fibaro-HC2/issues/12#issuecomment-230396484","issue_url":"https://api.github.com/repos/ilcato/homebridge-Fibaro-HC2/issues/12","id":230396484,"user":{"login":"ilcato","id":1260538,"avatar_url":"https://avatars.githubusercontent.com/u/1260538?v=3","gravatar_id":"","url":"https://api.github.com/users/ilcato","html_url":"https://github.com/ilcato","followers_url":"https://api.github.com/users/ilcato/followers","following_url":"https://api.github.com/users/ilcato/following{/other_user}","gists_url":"https://api.github.com/users/ilcato/gists{/gist_id}","starred_url":"https://api.github.com/users/ilcato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilcato/subscriptions","organizations_url":"https://api.github.com/users/ilcato/orgs","repos_url":"https://api.github.com/users/ilcato/repos","events_url":"https://api.github.com/users/ilcato/events{/privacy}","received_events_url":"https://api.github.com/users/ilcato/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T06:24:40Z","updated_at":"2016-07-05T06:24:40Z","body":"is your config.json in .homebridge ?"}}
{"actor":{"display_login":"ilcato"}}