Closed sebster6 closed 2 years ago
Similar error for me every minute or so. Fresh Pimatic installation, with an older restored config.json setup (Ubuntu 18.04 LTS, node v8.9.4):
Unhandled rejection Error: Missing state object in light status result
at BaseHueLightGroup.BaseHueLight._statusReceived (/home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:246:45)
at BaseHueLightGroup._statusReceived (/home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:350:14)
at BaseHueLightGroup.<anonymous> (/home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:4:57)
at /home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:4:57
at /home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:312:11
at BaseHueLightGroup.allGroupsReceived (/home/user/bin/pimatic-app/node_modules/pimatic-hue-zll/hue.coffee:504:13)
at tryCatcher (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/promise.js:694:18)
at _drainQueueStep (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/home/user/bin/pimatic-app/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
pimatic doesn't work with node v8, use node v4 instead.
Apart from the error above, Pimatic runs fine with node v8 in my case, including the Hue devices. But thanks for pointing me in the right direction @sweebee !
I had to setup my Pimatic installation from scratch after a problem (https://forum.pimatic.org/topic/4025/pimatic-hap-error-during-update). I'm using the old configuration file that worked fine before, but now I'm encountering frequent (every 5-10 seconds) Pimatic log entries like these:
Any idea what might cause this? Apart from the new Raspberry setup, I added five Osram Smart+ Plugs recently (added to the Hue hub). Not sure if this is connected though.