DeeeeLAN / homebridge-sleepiq

SleepIQ Homebridge plugin
18 stars 10 forks source link

getting Cannot read property 'isInBed' of null warnings #35

Closed keokoa closed 3 years ago

keokoa commented 3 years ago

(node:1705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isInBed' of null

anybody know how to fix this?

DeeeeLAN commented 3 years ago

I will need more information. Can you post a full debug log? What bed/base combo do you have?

keokoa commented 3 years ago

logs.txt

I have a c4 w/SIQ bed and Queen FlexFit1 base

keokoa commented 3 years ago

So how do I fix this?

DeeeeLAN commented 3 years ago

I need a debug log, that is a standard log. I need to see the contents of the API calls so I can figure out why your bed is not providing the isInBed field.

keokoa commented 3 years ago

How do I get the debug log on a Hoobs in a box?

DeeeeLAN commented 3 years ago

I have not used hoobs, I am not sure. I know in Homebridge UI there is a toggle for it in settings.

keokoa commented 3 years ago

Error: listen EADDRINUSE: address already in use :::80 at Server.setupListenHandle [as _listen2] (net.js:1313:16) at listenInCluster (net.js:1361:12) at Server.listen (net.js:1447:7) at Function.serverListen [as listen] (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/express-ws/lib/index.js:42:40) at API.start (/usr/local/lib/node_modules/@hoobs/hoobs/server/api.js:191:17) at module.exports (/usr/local/lib/node_modules/@hoobs/hoobs/server/cli.js:172:21) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 80 } [HOOBS] Stopping server. root@hoobs:/root/.hoobs/etc#

DeeeeLAN commented 3 years ago

Make sure you stop your first instance, or select a different port. Something is already running on port 80 so you can't run a second thing on the same port.

keokoa commented 3 years ago

root@hoobs:/root/.hoobs/etc# hoobs -d Error: listen EADDRINUSE: address already in use :::8080 at Server.setupListenHandle [as _listen2] (net.js:1313:16) at listenInCluster (net.js:1361:12) at Server.listen (net.js:1447:7) at Function.serverListen [as listen] (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/express-ws/lib/index.js:42:40) at API.start (/usr/local/lib/node_modules/@hoobs/hoobs/server/api.js:191:17) at module.exports (/usr/local/lib/node_modules/@hoobs/hoobs/server/cli.js:172:21) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 8080 } /usr/local/lib/node_modules/@hoobs/hoobs/bin/hoobs bridge -u /root/.hoobs/etc -p /root/.hoobs/node_modules -r -d [HOOBS] Stopping server. root@hoobs:/root/.hoobs/etc#

I changed the port and this what I get

keokoa commented 3 years ago

I don't know how else to get the information you asking for

DeeeeLAN commented 3 years ago

You will need to reach out to the HOOBS developers for support. I have not used it so I can't do much to help. Once you get the debug logs I can continue assisting.