koalazak / dorita980

Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot
MIT License
931 stars 147 forks source link

Roomba I8 Cannot Connect #152

Closed stratus-ss closed 2 years ago

stratus-ss commented 2 years ago

The official Home Assistant Addon connects just fine to this Roomba as does the python project here: https://github.com/NickWaterton/Roomba980-Python#how-to-get-your-usernameblid-and-password

When I try to run the docker container for this project I get the following error

npm notice 
npm notice New minor version of npm available! 8.1.4 -> 8.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.2.0
npm notice Run npm install -g npm@8.2.0 to update!
npm notice 
Make sure your robot is on the Home Base and powered on (green lights on). Then press and hold the HOME button (or DOCK+SPOT on some models) on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Then press any key here...
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 192.168.66.69:8883
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
Emitted 'error' event on TLSSocket instance at:
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.66.69',
  port: 8883
}

I have noted that the python project uses port 5678 for connection.

What can I do to help make this connection?

stratus-ss commented 2 years ago

This was user error, I read that there is only a single MQTT local connection allowed and since I had the HA addon installed it was blocking this