Hey Guys,
i have some troble while introducing rule support for my plugin pimatic-wakeonlan. I get the following error:
20:09:00.079 [pimatic] rule wakeupalldevices error executing an action: Array.isArray result
20:09:00.081 [pimatic] AssertionError: Array.isArray result
20:09:00.081 [pimatic]> at /home/thost96/pimatic-dev/node_modules/pimatic/lib/rules.coffee:897:15
20:09:00.081 [pimatic]> at tryCatcher (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/util.js:26:23)
20:09:00.081 [pimatic]> at Promise._settlePromiseFromHandler (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/promise.js:507:31)
20:09:00.081 [pimatic]> at Promise._settlePromiseAt (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/promise.js:581:18)
20:09:00.081 [pimatic]> at Async._drainQueue (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/async.js:128:12)
20:09:00.081 [pimatic]> at Async._drainQueues (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/async.js:133:10)
20:09:00.081 [pimatic]> at Async.drainQueues (/home/thost96/pimatic-dev/node_modules/pimatic/node_modules/bluebird/js/main/async.js:15:14)
20:09:00.081 [pimatic]> at process._tickCallback (node.js:448:13)
The whole code is on github: https://github.com/thost96/pimatic-wakeonlan/tree/development
There is also a file called output.log, where all output is logged.
Had somebody this error before or know how to fix it? I didn’t get it.