jakeblatchford / neeo-homeassistant

A Home Assistant integration for NEEO
17 stars 4 forks source link

Exception thrown while setting up in NEEO #6

Open janusloo opened 3 years ago

janusloo commented 3 years ago

Hi, I found this and would like to add my light scenes to NEEO. Upon firing up your script everything is okay, until I want to add the components from HA. It will throw this error: discover call - light got list of states from HA discoverDevices failed TypeError: parsedBody.forEach is not a function at HAService. (/root/neeo-homeassistant/haservice.js:124:20) at tryCatcher (/root/neeo-homeassistant/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/root/neeo-homeassistant/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/root/neeo-homeassistant/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/root/neeo-homeassistant/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/root/neeo-homeassistant/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/root/neeo-homeassistant/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/root/neeo-homeassistant/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/root/neeo-homeassistant/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/root/neeo-homeassistant/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:456:21)

I am not good with javascript. Is this something you can fix? I would like to use your driver to add my LIFX scenes to NEEO. Thanks a lot for your time!