{"action":"created","issue":{"url":"https://api.github.com/repos/rodtoll/isy-js/issues/14","labels_url":"https://api.github.com/repos/rodtoll/isy-js/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/rodtoll/isy-js/issues/14/comments","events_url":"https://api.github.com/repos/rodtoll/isy-js/issues/14/events","html_url":"https://github.com/rodtoll/isy-js/issues/14","id":125110166,"number":14,"title":"loadElkNodes fails on initialization - no Elk system installed","user":{"login":"bdstark","id":696245,"avatar_url":"https://avatars.githubusercontent.com/u/696245?v=3","gravatar_id":"","url":"https://api.github.com/users/bdstark","html_url":"https://github.com/bdstark","followers_url":"https://api.github.com/users/bdstark/followers","following_url":"https://api.github.com/users/bdstark/following{/other_user}","gists_url":"https://api.github.com/users/bdstark/gists{/gist_id}","starred_url":"https://api.github.com/users/bdstark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdstark/subscriptions","organizations_url":"https://api.github.com/users/bdstark/orgs","repos_url":"https://api.github.com/users/bdstark/repos","events_url":"https://api.github.com/users/bdstark/events{/privacy}","received_events_url":"https://api.github.com/users/bdstark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T05:00:48Z","updated_at":"2016-01-06T05:43:34Z","closed_at":null,"body":"I do not have an Elk system installed or enabled on my isy994i. When running isy.initialize, I am getting an error:\r\n\r\n```javascript\r\nvar setBaseInfo = function(config, callback) {\r\n    var isy = new ISY.ISY(config.ipAddress, config.username, config.password, isyChangeCallback, false, true);\r\n    \r\n    isy.initialize(function() {\r\n        callback(isy);\r\n    });\r\n}\r\n```\r\n\r\n```\r\n./node_modules/isy-js/isy.js:321\r\n    var nodes = document.childNamed('areas').childNamed('area').childrenNamed('zone');\r\n                                            ^\r\n\r\nTypeError: Cannot read property 'childNamed' of undefined\r\n    at ISY.loadElkNodes (./node_modules/isy-js/isy.js:321:45)\r\n    at Request.<anonymous> (./node_modules/isy-js/isy.js:395:30)\r\n    at emitTwo (events.js:87:13)\r\n    at Request.emit (events.js:172:7)\r\n    at Request.mixin._fireSuccess (./node_modules/restler/lib/restler.js:229:10)\r\n    at ./node_modules/restler/lib/restler.js:161:20\r\n    at IncomingMessage.parsers.auto (./node_modules/restler/lib/restler.js:402:7)\r\n    at Request.mixin._encode (./node_modules/restler/lib/restler.js:198:29)\r\n    at ./node_modules/restler/lib/restler.js:157:16\r\n    at Request.mixin._decode (./node_modules/restler/lib/restler.js:173:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/rodtoll/isy-js/issues/comments/169233795","html_url":"https://github.com/rodtoll/isy-js/issues/14#issuecomment-169233795","issue_url":"https://api.github.com/repos/rodtoll/isy-js/issues/14","id":169233795,"user":{"login":"rodtoll","id":3971139,"avatar_url":"https://avatars.githubusercontent.com/u/3971139?v=3","gravatar_id":"","url":"https://api.github.com/users/rodtoll","html_url":"https://github.com/rodtoll","followers_url":"https://api.github.com/users/rodtoll/followers","following_url":"https://api.github.com/users/rodtoll/following{/other_user}","gists_url":"https://api.github.com/users/rodtoll/gists{/gist_id}","starred_url":"https://api.github.com/users/rodtoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodtoll/subscriptions","organizations_url":"https://api.github.com/users/rodtoll/orgs","repos_url":"https://api.github.com/users/rodtoll/repos","events_url":"https://api.github.com/users/rodtoll/events{/privacy}","received_events_url":"https://api.github.com/users/rodtoll/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T05:43:34Z","updated_at":"2016-01-06T05:43:34Z","body":"Hey there. In the latest library you should be able to turn off elk support so it won't even make the call. Looking at your source it looks like your reversed the callback and the Elkenabled parameters. Try reversing those and see if it helps. "}}